/* Settings Page Styles */

/* Settings Cards */
.settings-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.settings-card-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    border-radius: 8px 8px 0 0;
}

.settings-card-header i {
    font-size: 1.3em;
    color: #337ab7;
    margin-left: 12px;
}

.settings-card-header-icon {
    width: 24px;
    height: 24px;
    margin-left: 12px;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.settings-card-body {
    padding: 20px;
}

/* Card Description */
.settings-card-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e0e0e0;
}

/* Two Column Layout */
.settings-two-columns {
    display: flex;
    gap: 25px;
}

.settings-column-fields {
    flex: 1;
    min-width: 0;
}

.settings-column-image {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
    background-color: #f9f9f9;
}

.settings-column-image .upload-image {
    width: 100%;
    text-align: center;
}

/* Loading Overlay */
.loading-overlay-container {
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-overlay i {
    color: #337ab7;
}

label.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Settings Form Rows */
.settings-form-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.settings-form-row:last-of-type {
    border-bottom: none;
}

.settings-form-label {
    min-width: 120px;
    font-weight: 600;
    color: #555;
    margin-left: 15px;
}

.settings-form-value {
    color: #333;
    font-weight: 500;
}

.settings-form-input,
.settings-form-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.2s ease;
}

.settings-form-input:focus,
.settings-form-select:focus {
    border-color: #337ab7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.1);
}

/* Contacts management – filter dropdown arrow on the left */
.contacts-management-filter-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 1.5em;
    padding-right: 0.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 10px 10px;
}

/* User edit modal – manager dropdown arrow on the other side (right in RTL) */
.user-edit-manager-select select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 1.5em;
    padding-left: 0.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px 10px;
}

/* Logo and Profile Image rows */
.settings-form-logo,
.settings-form-profile {
    align-items: flex-start;
    padding: 15px 0;
}

.settings-form-logo .upload-image,
.settings-form-profile .upload-image {
    display: inline-block;
}

.settings-form-logo .custom-file-input,
.settings-form-profile .custom-file-input {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Form Actions */
.settings-form-actions {
    padding-top: 15px;
    margin-top: 10px;
}

.settings-form-actions .btn {
    margin-left: 8px;
    padding: 6px 16px;
}

.settings-form-actions .btn:first-child {
    margin-left: 0;
}

/* Password Form Styles */
.settings-password-form {
    max-width: 280px;
}

.settings-password-form .ui-control {
    margin-bottom: 15px;
}

.settings-password-form .ui-input label {
    display: block;
}

.settings-password-form .ui-input input[type="password"],
.settings-password-form .ui-input input[type="text"] {
    min-width: 250px;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.settings-password-form .ui-input input:focus {
    border-color: #337ab7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.1);
}

.settings-password-form .btn {
    margin-top: 10px;
}

/* Accounting Connections Section - when inside card */
.settings-card #accounting-connections {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.settings-card #accounting-connections .section-title {
    display: none !important;
}

/* Accounting Connections Section */
#accounting-connections {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#accounting-connections .section-title {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

#accounting-connections .section-title-icon {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}

#accounting-connections > p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* Accounting Types List */
.accounting-types-list {
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accounting-type-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    gap: 15px;
}

.accounting-type-info {
    display: flex;
    align-items: center;
    min-width: 140px;
}

.accounting-type-logo {
    width: 28px;
    height: 28px;
    margin-left: 10px;
    object-fit: contain;
}

.accounting-type-name {
    color: #333;
}

.accounting-type-input {
    flex: 1;
}

.accounting-type-input .connected-state,
.accounting-type-input .disconnected-state {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounting-type-input .settings-form-input {
    flex: 1;
    max-width: 250px;
}

.connection-status-badge {
    font-size: 1.1em;
}

.connection-status-badge.connected {
    color: #5cb85c;
}

.accounting-type-actions {
    display: flex;
    gap: 6px;
}

.accounting-type-actions .btn {
    padding: 6px 10px;
}

.accounting-type-actions .btn i {
    margin-left: 0;
}

/* Modal Styles */
.accounting-connection-modal .modal-dialog {
    max-width: 500px;
}

.accounting-connection-modal .modal-body {
    padding: 20px 25px;
}

.accounting-connection-modal .modal-footer {
    padding: 15px 25px;
}

/* Responsive */
@media (max-width: 1350px) {
    .settings-column-image {
        flex: 0 0 30%;;
    }
}

@media (max-width: 1200px) {
    .settings-two-columns {
        flex-direction: column;
    }
    
    .settings-column-image {
        flex: none;
        width: 100%;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px dashed #e0e0e0;
    }
}

@media (max-width: 768px) {
    .settings-card {
        margin-bottom: 15px;
    }
    
    .settings-card-header {
        padding: 12px 15px;
    }
    
    .settings-card-body {
        padding: 15px;
    }
    
    .settings-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-form-label {
        margin-bottom: 5px;
        margin-left: 0;
    }
    
    .settings-form-input,
    .settings-form-select {
        width: 100%;
        min-width: auto;
    }
    
    .settings-password-form {
        min-width: auto;
    }
    
    .settings-password-form .ui-input input[type="password"],
    .settings-password-form .ui-input input[type="text"] {
        min-width: auto;
        width: 100%;
    }
    
    .connection-card {
        padding: 12px;
    }

    .connection-header {
        flex-wrap: wrap;
    }

    .connection-status {
        width: 100%;
        margin-top: 8px;
        margin-right: 0;
    }

    .connection-details .detail-row {
        flex-direction: column;
    }

    .connection-details .detail-label {
        min-width: auto;
        margin-bottom: 2px;
    }

    .connection-actions {
        flex-direction: column;
    }

    .connection-actions .btn {
        width: 100%;
    }

    .accounting-type-row {
        flex-wrap: wrap;
    }

    .accounting-type-info {
        min-width: 100%;
        margin-bottom: 10px;
    }

    .accounting-type-input {
        min-width: calc(100% - 90px);
    }

    .accounting-type-input .settings-form-input {
        max-width: none;
    }
}

/* Contacts management – override Bootstrap .row negative margins so the card doesn't overflow */
.contactsManagement .filters > .row:first-child {
    margin-right: 0;
    margin-left: 0;
}

/* Contacts management – add contact button */
.contactsManagement .filters > .row:first-child .col-sm-3:last-child .ui-control {
    margin-left: -20px !important;
}
.contactsManagement .filters > .row:first-child .col-sm-3:last-child button {
    min-width: 130px;
    padding: 10px;
    border-radius: 8px;
    margin-top: 1px !important;
}

/* Contacts management – table header rounded top corners + shadow */
.contactsManagement .headers {
    border-radius: 8px 8px 0 0;
    height: 40px;
    display: flex;
    align-items: center;
}

.contactsManagement .headers .cell {
    padding-top: 0;
    vertical-align: middle;
}

.contactsManagement #table-control {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Contacts management – row height + vertical centering */
.contactsManagement .table-control .list .row-body {
    min-height: 80px;
    align-items: center;
}

/* Avatar circle – initials variant */
.contact-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    flex-shrink: 0;
    user-select: none;
}

/* Avatar circle – image variant (object-fit keeps it circular even for square sources) */
.contact-avatar-circle.contact-avatar-img {
    object-fit: cover;
    background: none;
}

/* Small avatar for manager column */
.contact-avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.68em;
}

/* Avatar + name merged cell */
.contacts-management-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact name – no blue/underline by default; underline + pointer on hover */
.contacts-management-contact-name {
    cursor: pointer;
    color: inherit;
    font-size: 1em;
    font-weight: bold;
}
.contacts-management-contact-name:hover {
    text-decoration: underline;
}
.contactsManagement .text-em-08 {
    font-size: 0.85em;
}

/* Fix cell padding-top pushing content off-center (switch column) */
.contactsManagement .table-control .list .row-body .cell {
    padding-top: 0;
}

/* Center the active/inactive switch vertically:
   .table-control .row-body .inline is flex+stretch by default; override to center.
   Also zero out the switch-middle margin that adds 10px top gap. */
.contactsManagement .table-control .row-body .inline {
    align-items: center;
}
.contactsManagement .switch.switch-middle {
    margin-top: 0;
    margin-bottom: 0;
}

/* Email/phone merged column rows */
.contacts-management-info-row {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.8;
}
.contactsManagement .table-control .row-body .contacts-management-info-row {
    font-size: 1em;
}
.contacts-management-info-icon {
    opacity: 0.5;
    font-size: 0.85em;
    flex-shrink: 0;
    padding-right: 1px;
}

/* Packages column padding */
.contactsManagement .cell:has(.license-labels) {
    padding: 0 0 0 60px;
}

/* Manager cell – avatar + name side by side */
.contacts-management-manager-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Manager name – dark gray on hover, with email tooltip */
.contacts-management-manager-name:hover {
    color: #555;
}

/* Contacts management – license labels (pill/chip style) */
.contactsManagement .license-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.contactsManagement .license-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    white-space: nowrap;
}
/* 10 hashed colors for package tags (0–4 match original scheme, 5–9 same style) */
.contactsManagement .license-label-0 {
    background-color: #e3f2fd;
    color: #1565c0;
}
.contactsManagement .license-label-1 {
    background-color: #f3e5f5;
    color: #7b1fa2;
}
.contactsManagement .license-label-2 {
    background-color: #e8f5e9;
    color: #2e7d32;
}
.contactsManagement .license-label-3 {
    background-color: #fff3e0;
    color: #e65100;
}
.contactsManagement .license-label-4 {
    background-color: #fce4ec;
    color: #c2185b;
}
.contactsManagement .license-label-5 {
    background-color: #e0f7fa;
    color: #00838f;
}
.contactsManagement .license-label-6 {
    background-color: #f1f8e9;
    color: #558b2f;
}
.contactsManagement .license-label-7 {
    background-color: #fff8e1;
    color: #f9a825;
}
.contactsManagement .license-label-8 {
    background-color: #ede7f6;
    color: #512da8;
}
.contactsManagement .license-label-9 {
    background-color: #ffebee;
    color: #c62828;
}
.contactsManagement .license-label-none {
    color: #999;
}

/* Contacts management – kebab button (match ניהול לקוחות: no border, lighter icon) */
.contactsManagement .btn-kebab,
.contactsManagement .btn-kebab:focus,
.contactsManagement .btn-kebab:active {
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 0.5;
}
.contactsManagement .btn-kebab:hover {
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
}
.contactsManagement .btn-kebab i {
    color: #7D7D7D;
    font-size: 1em;
}
.contactsManagement .btn-kebab:hover i {
    color: #555;
}

/* Contacts management – resend (הזמן שוב) icon column: header blue, same visibility as kebab menu item */
.contactsManagement .contacts-management-resend-icon {
    color: #118dcf;
    cursor: pointer;
    display: inline-block;
    font-size: 1.2em;
}
.contactsManagement .contacts-management-resend-icon:hover:not(.is-disabled) {
    opacity: 0.85;
}
.contactsManagement .contacts-management-resend-icon.is-disabled {
    color: #aaa;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Contacts management – kebab wrapper: span contains both trigger and menu; menu is anchored via position absolute */
.contacts-management-kebab-wrapper {
    position: relative;
    display: inline-block;
}
.contacts-management-kebab-wrapper .dropdown-menu.dropdown-menu-kebab {
    position: absolute;
}

/* Contacts management – row highlighted while kebab menu is open */
.contactsManagement .row-body.contacts-management-row-menu-open {
    background-color: #eef6ff;
    z-index: 1;
}

/* Contacts management – kebab dropdown (append-to-body so not clipped by table overflow) */
.dropdown-menu-kebab {
    margin-top: -34px;   /* 6px - 40px: move menu up 40px from default */
    margin-left: 30px;   /* 120 - 90: move menu 90px more to the left */
    border-top: none;
    z-index: 1060;       /* above table and sidebar when appended to body */
}
.dropdown-menu-kebab > li > a {
    padding: 7px 10px;
    direction: rtl;
}
.dropdown-menu-kebab > li > a > i {
    opacity: 0.7;
    margin-left: 10px;
}
.dropdown-menu-kebab > li > a:hover > i {
    opacity: 1;
}

/* License assignment modal – two rectangular areas */
.license-assignment-modal-body {
    min-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}
.license-assignment-area {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: #fafafa;
}
.license-assignment-area:last-of-type {
    margin-bottom: 0;
}
.license-assignment-area-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #118DCF;
}
.license-assignment-list-wrapper {
    max-height: 14em;
    overflow-y: auto;
}
.license-assignment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.license-assignment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    direction: rtl;
}
.license-assignment-item:last-child {
    border-bottom: none;
}
.license-assignment-name {
    flex: 1;
}
.license-assignment-btn-remove,
.license-assignment-btn-add {
    padding: 4px 8px;
    min-width: 32px;
}
.license-assignment-btn-remove {
    color: #c9302c;
}
.license-assignment-btn-remove:hover {
    color: #a94442;
}
.license-assignment-btn-add {
    color: #118dcf;
}
.license-assignment-btn-add:hover {
    color: #0d6a9e;
}
.license-assignment-empty {
    color: #999;
    font-size: 0.9em;
    padding: 8px 0;
    list-style: none;
    border: none;
}


/* ===== Sent Documents / ניהול חתימות ===== */

.sentdoc-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Filter card — layout only; visual styles come from ui-2026.css .ui2-filter-card */
.sentdoc-filter-card {
    flex-shrink: 0;
    margin: 8px 8px 0 8px;
}

.sentdoc-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sentdoc-filter-item {
    flex: 1;
    min-width: 140px;
}

.sentdoc-filter-item--sm {
    flex: 0 0 120px;
}

.sentdoc-filter-item--md {
    flex: 1 0 150px;
}

/* Blue client-picker button */
.sentdoc-filter-card .ui-control.ui-client button {
    margin-top: -36px;
    margin-left: 13px;
    position: sticky;
    border-radius: 8px;
}

/* Input wrapper — position:relative so the X is anchored inside the input */
.sentdoc-client-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.sentdoc-client-input-wrapper input {
    width: 100%;
}

/* X (clear) button — 4-class specificity beats .ui-control.ui-client .fa.fa-times (3 classes) */
.sentdoc-filter-card .ui-control.ui-client .sentdoc-client-clear {
    position: absolute;
    top: 15px;
    left: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #888;
}

.sentdoc-filter-card .ui-control.ui-client .sentdoc-client-clear:hover {
    color: #333;
}

/* Record count row — between filter strip and table */
.sentdoc-record-count {
    flex-shrink: 0;
    padding: 4px 10px 2px 0;
    font-size: 0.8em;
    color: #6b7280;
    text-align: left;
    margin: 0 8px;
}

/* Table area — same horizontal inset as filter card */
.sentdoc-table-area {
    flex: 1;
    overflow: hidden;
}

/* Table wrapper — rounded card */
.sentdoc-list-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin: 0 8px;
}

.sentdoc-list-wrapper .calc-list {
    border: none !important;
    border-top: 1px solid #e8eaed !important;
}

.sentdoc-client-name {
    font-weight: 600;
}

/* Visual padding on text-heavy columns to prevent text running into adjacent columns */
.sentdoc-col-padded {
    padding-left: 5px;
}

/* Date cell — date on left, time on right */
.sentdoc-date-cell {
    display: flex;
    justify-content: space-between;
    direction: ltr;
}

/* Kebab button — scoped to sentdoc, matches contacts management style */
.sentdoc-layout .btn-kebab,
.sentdoc-layout .btn-kebab:focus,
.sentdoc-layout .btn-kebab:active {
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 0.5;
}
.sentdoc-layout .btn-kebab:hover {
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
}
.sentdoc-layout .btn-kebab i {
    color: #7D7D7D;
    font-size: 1em;
}
.sentdoc-layout .btn-kebab:hover i {
    color: #555;
}
/* Row stays highlighted while its kebab menu is open */
.sentdoc-layout .row-body.sentdoc-row-menu-open {
    background-color: #eef6ff;
    z-index: 1;
}

.sentdoc-kebab-cell {
    text-align: left;
    padding-left: 0;
}

.sentdoc-kebab-wrapper {
    display: inline-block;
}
.sentdoc-kebab-wrapper .dropdown-menu.dropdown-menu-kebab {
    position: absolute;
}

/* Status header — vertically and horizontally centered */
.sentdoc-header-status,
.sentdoc-header-centered {
    vertical-align: middle !important;
    text-align: center;
}

/* Status cell — badge centered */
.sentdoc-status-cell {
    text-align: center;
    vertical-align: middle;
}

.sentdoc-status-cell .cell-content,
.sentdoc-centered-cell .cell-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.sentdoc-send-date {
    font-size: 0.7em;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
}

.sentdoc-channel-icon {
    font-size: 1em;
    color: #555;
}

.sentdoc-channel-badge {
    font-size: 20px;
    color: #757575;
}

.sentdoc-actions-cell {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 4px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.sentdoc-action-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.7;
    white-space: nowrap;
    cursor: pointer;
    background-color: #e8edf2;
    color: #445;
    border: 1px solid transparent;
    transition: background-color 0.15s, border-color 0.15s;
}

.sentdoc-action-badge:hover {
    background-color: #d0dae6;
    border-color: #b8c8d8;
}

/* Status Badges */
.sentdoc-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
    line-height: 1.7;
    white-space: nowrap;
}

.sentdoc-badge--sent {
    background-color: #118dcf40;
    color: #118dcf;
}

.sentdoc-badge--client-signed {
    background-color: #00800040;
    color: #008000;
}

.sentdoc-badge--pending {
    background-color: #0656a530;
    color: #0656a5;
}

.sentdoc-badge--signed {
    background-color: #099d6b30;
    color: #099d6b;
}

.sentdoc-badge--ready {
    background-color: #ff8f0020;
    color: #ff8f00;
}

.sentdoc-badge--none {
    background-color: #75757530;
    color: #757575;
}

/* Status Summary Bar */
.sentdoc-status-bar {
    display: flex;
    gap: 6px;
    padding: 6px 8px;
    flex-shrink: 0;
}

.sentdoc-status-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 7px 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.sentdoc-status-card:hover {
    border-color: #c5d0dc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background: #f8fafc;
}

.sentdoc-status-card--active {
    border-color: #118dcf;
    background: #f0f8ff;
    box-shadow: 0 2px 6px rgba(17, 141, 207, 0.15);
}

.sentdoc-status-card-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    flex-shrink: 0;
}

.sentdoc-status-card-icon--sent {
    background-color: #118dcf40;
    color: #118dcf;
}

.sentdoc-status-card-icon--client-signed {
    background-color: #00800040;
    color: #008000;
}

.sentdoc-status-card-icon--pending {
    background-color: #0656a530;
    color: #0656a5;
}

.sentdoc-status-card-icon--signed {
    background-color: #099d6b30;
    color: #099d6b;
}

.sentdoc-status-card-body {
    flex: 1;
    min-width: 0;
}

.sentdoc-status-card-label {
    font-size: 0.7em;
    color: #6b7280;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentdoc-status-card-count {
    font-size: 1.2em;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

/* "New message" button inside filter row */
.sentdoc-filter-item--btn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

/* Canceled badge/icon — red */
.sentdoc-badge--canceled {
    background-color: #d9000020;
    color: #d90000;
}

.sentdoc-status-card-icon--canceled {
    background-color: #d9000020;
    color: #d90000;
}

/* None/draft icon — gray */
.sentdoc-status-card-icon--none {
    background-color: #75757530;
    color: #757575;
}

/* Campaign type badges */
.sentdoc-badge--type-message {
    background-color: #75757520;
    color: #555;
}

.sentdoc-badge--type-reports {
    background-color: #cce4f7;
    color: #1a6fa8;
}

.sentdoc-badge--type-capital {
    background-color: #e8d5f5;
    color: #7b3fa8;
}


/* ===== Sign Links Icon (fa-link next to status pills) ===== */

.sign-link-icon {
    margin-right: 6px;
    cursor: pointer;
    transition: color 120ms;
}

.sign-link-icon:hover {
    color: #0d6fa3;
}

/* ===== Sign Links Modal ===== */

.sign-links-modal .modal-dialog {
    width: 480px;
}

.sign-links-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.sign-links-label {
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
    font-weight: bold;
}

.sign-links-input {
    cursor: pointer;
    width: 100%;
    user-select: all;
    direction: ltr;
    text-align: left;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 13px;
    background: #f9f9f9;
    transition: background 200ms;
}

.sign-links-input--copied {
    background: #d4edda;
}

/* ===== Assignee modal — card sections ===== */
.am-card {
    background: #fff;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.am-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: #fff;
    border-bottom: 1px solid #e4e8ed;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 0.92em;
    color: #444;
}

.am-card-header i {
    color: #118dcf;
    font-size: 1em;
}

.am-card-body {
    padding: 12px 14px;
}

.am-card-body .ui-control {
    margin-bottom: 4px;
}

/* Instructions card */
.am-card--instructions .am-card-body {
    font-size: 0.92em;
    line-height: 1.6;
}

/* Link-mode card */
.am-card--link .am-link-note {
    margin-top: 6px;
    margin-right: 22px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Assignees card */
.am-card--assignees .am-assignee-row {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.am-card--assignees .am-assignee-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.am-card--assignees .ui-radio label {
    font-size: 0.9em;
}

/* ===== Transfer Ownership Modal ===== */

.transfer-ownership-modal .modal-dialog {
    width: 820px;
}
