/* =========================================================
   Components: Cards, Tables, Forms, Buttons, Modals, etc.
   ========================================================= */

/* ============== Page header ============== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 { font-size: 22px; margin: 0; color: var(--dark); }
.page-header .page-subtitle { color: var(--gray-500); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Global Table Header Background Override */
table th,
.table th,
.clients-table th,
.whmcs-table th,
.admin-table th,
table thead th,
table thead tr {
    background: #0f766e !important;
    color: #ffffff !important;
}

/* ============== Buttons ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    line-height: 1.4;
    background: #fff;
    color: var(--gray-700);
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-search {
    background: #115e59 !important;
    border-color: #115e59 !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 4px;
}
.btn-search:hover {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
}
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-danger  { background: var(--danger);  color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-info    { background: var(--info);    color: #fff; border-color: var(--info); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm  { padding: 4px 10px; font-size: 12px; }
.btn-lg  { padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; display: flex; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-top-left-radius: var(--radius); border-bottom-left-radius: var(--radius); }
.btn-group .btn:last-child  { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.btn-group .btn + .btn { margin-left: -1px; }

/* ============== Cards ============== */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.card-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--dark); }
.card-body { padding: 20px; }
.card-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: var(--gray-100);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

/* ============== Summary / stat cards ============== */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.summary-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}
.summary-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.summary-icon i, .summary-icon .fa-solid, .summary-icon .fa-regular, .summary-icon .fa-brands { font-size: 22px; line-height: 1; }
.summary-icon[style*="width:36px"] i, .summary-icon[style*="width:36"] i { font-size: 16px; }
.summary-icon.bg-primary  { background: var(--primary-light); color: var(--primary); }
.summary-icon.bg-success  { background: var(--success-light); color: var(--success); }
.summary-icon.bg-warning  { background: var(--warning-light); color: var(--warning); }
.summary-icon.bg-danger   { background: var(--danger-light);  color: var(--danger); }
.summary-icon.bg-info     { background: var(--info-light);    color: var(--info); }
.summary-body { flex: 1; min-width: 0; }
.summary-label { font-size: 12px; color: var(--gray-500); text-transform: uppercase; font-weight: 600; letter-spacing: 0.3px; }
.summary-value { font-size: 24px; font-weight: 700; color: var(--dark); margin: 2px 0 4px; line-height: 1.2; }
.summary-desc { font-size: 12px; color: var(--gray-500); }

/* ============== Tables ============== */
.table-wrap {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
}
.table-toolbar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.table-search {
    position: relative;
    display: flex; align-items: center;
}
.table-search input {
    height: 34px;
    padding: 0 12px 0 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    width: 220px;
}
.table-search::before {
    content: "🔍";
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: var(--gray-400);
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.table tr:hover td { background: var(--gray-100); }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.table .text-right { text-align: right; }
.table .text-center { text-align: center; }
.table .table-checkbox { width: 36px; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============== Forms ============== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.form-grid-full { grid-column: 1 / -1; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }

.form-group {
    margin-bottom: 0;
}

/* In compact cards/forms, give the form some internal horizontal padding */
.card .form-group, .auth-form .form-group, .modal-body .form-group { padding: 0 2px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}
.form-group .required::after { content: " *"; color: var(--danger); }
.form-help { font-size: 12px; color: var(--gray-500); margin-top: 4px; }

.form-control, .form-select, .form-textarea {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    display: block;
}
.form-textarea { height: auto; min-height: 90px; resize: vertical; }
.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}
.form-control:disabled, .form-control[readonly] { background: var(--gray-100); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M5 6L0 0h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.input-with-icon { position: relative; }
.input-with-icon .form-control { padding-right: 40px; }
.input-icon-btn {
    position: absolute; right: 6px; top: 50%;
    transform: translateY(-50%);
    background: none; border: 0; cursor: pointer;
    color: var(--gray-500);
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 4px;
    line-height: 1;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}
.input-icon-btn:hover { background: var(--gray-100); color: var(--primary); }
.input-icon-btn i { font-size: 14px; }
.checkbox, .radio {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; cursor: pointer;
    font-weight: normal;
}
.checkbox input[type=checkbox], .radio input[type=radio] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
}
.form-group-inline {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.form-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 16px; border-top: 1px solid var(--border);
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============== Badges ============== */
.badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    background: var(--gray-200);
    color: var(--gray-700);
    white-space: nowrap;
    text-align: center;
}
.badge-primary   { background: #2563eb; color: #ffffff; }
.badge-success, .badge-active { background: #779500 !important; color: #ffffff !important; }
.badge-warning, .badge-pending { background: #cc0000 !important; color: #ffffff !important; }
.badge-danger, .badge-suspended { background: #cc0000 !important; color: #ffffff !important; }
.badge-info      { background: #0284c7; color: #ffffff; }
.badge-secondary, .badge-cancelled, .badge-terminated, .badge-inactive { background: #888888 !important; color: #ffffff !important; }
.badge-fraud     { background: #000000 !important; color: #ffffff !important; }

/* ============== Alerts ============== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
}
.alert > i:first-child, .alert > span > i:first-child { font-size: 18px; }
.alert-success { background: var(--success-light); border-color: #6ee7b7; color: #065f46; }
.alert-warning { background: var(--warning-light); border-color: #fcd34d; color: #92400e; }
.alert-error   { background: var(--danger-light); border-color: #fca5a5; color: #991b1b; }
.alert-info    { background: var(--info-light); border-color: #93c5fd; color: #1e40af; }

/* ============== Modal ============== */
.modal-container {
    position: fixed; inset: 0;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(15,23,42,0.5);
    z-index: 1000;
    padding: 20px;
}
.modal-container.open { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-title { margin: 0; font-size: 16px; font-weight: 600; }
.modal-close { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--gray-500); line-height: 1; }
.modal-close::before { content: "\00d7"; font-weight: 300; }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: flex-end; gap: 8px;
}
.modal-lg { max-width: 900px; }
.modal-sm { max-width: 400px; }

/* Custom Action Modal Component */
.auto-modal-overlay {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.auto-modal-overlay.show,
.auto-modal-overlay.open {
    display: flex;
}
.auto-modal-card {
    background: #ffffff;
    width: 560px;
    max-width: 92%;
    border-radius: 4px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}
.auto-modal-header {
    background: #0f766e;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.auto-modal-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}
.auto-modal-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.8;
}
.auto-modal-close-btn:hover {
    opacity: 1;
}
.auto-modal-body {
    padding: 20px;
}
.auto-modal-alert-box {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #0369a1;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}
.auto-modal-footer {
    padding: 0 20px 16px 20px;
    text-align: right;
}
.auto-modal-footer-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    font-size: 13px;
    padding: 6px 18px;
    border-radius: 4px;
    font-weight: 500;
}

/* ============== Toast ============== */
.toast-container {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 2000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    background: #fff;
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    font-size: 13px;
    animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }

/* ============== Dropdown ============== */
.topbar-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    display: none;
    z-index: 100;
}
.topbar-dropdown.open .dropdown-menu { display: block; }
.dropdown-wide { min-width: 320px; }
.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--gray-700);
    font-size: 13px;
    transition: var(--transition);
}
.dropdown-item:hover { background: var(--gray-100); text-decoration: none; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-header {
    padding: 10px 16px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.dropdown-list { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.dropdown-list li { border-bottom: 1px solid var(--gray-100); }
.dropdown-list li:last-child { border-bottom: 0; }
.dropdown-list li a {
    display: block; padding: 10px 16px; color: var(--gray-700);
    text-decoration: none;
}
.dropdown-list li a:hover { background: var(--gray-100); }
.dropdown-list li.unread { background: var(--primary-light); }
.dropdown-list .notif-title { font-weight: 600; font-size: 13px; }
.dropdown-list .notif-meta  { color: var(--gray-500); font-size: 12px; margin-top: 2px; }
.dropdown-empty { padding: 24px; text-align: center; color: var(--gray-500); }
.dropdown-footer { padding: 8px 16px; text-align: center; border-top: 1px solid var(--border); }

/* ============== Pagination ============== */
.pagination {
    display: flex; gap: 4px;
    padding: 12px 16px;
    justify-content: flex-end;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}
.pagination a:hover { background: var(--gray-100); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--gray-400); pointer-events: none; }

/* ============== Tabs ============== */
.tabs {
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.tab {
    padding: 10px 16px;
    color: var(--gray-600);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}
.tab:hover { color: var(--primary); text-decoration: none; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ============== Misc utilities ============== */
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-mono {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.link-muted { color: var(--gray-500); font-size: 12px; }
.link-muted:hover { color: var(--primary); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ============== Chart container ============== */
.chart-wrap {
    position: relative;
    height: 320px;
}
.chart-container { padding: 16px; }

/* ============== To-do list ============== */
.todo-list { list-style: none; padding: 0; margin: 0; }
.todo-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.todo-item:last-child { border-bottom: 0; }
.todo-status {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.todo-status.pending     { background: var(--warning); }
.todo-status.in_progress { background: var(--info); }
.todo-status.completed   { background: var(--success); }
.todo-status.overdue     { background: var(--danger); }
.todo-body { flex: 1; min-width: 0; }
.todo-title { font-weight: 500; color: var(--dark); }
.todo-meta  { color: var(--gray-500); font-size: 12px; margin-top: 2px; }

/* ============== Empty state ============== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state h3 { color: var(--gray-700); margin: 0 0 6px; }

/* ============== Wizard ============== */
.wizard-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.wizard-step {
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}
.wizard-step.active { background: var(--primary); color: #fff; }
.wizard-step.done   { background: var(--success-light); color: var(--success); }
.wizard-step .step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.wizard-step:not(.active) .step-num { background: var(--gray-200); color: var(--gray-600); }

/* ============== Ticket rich text ============== */
.editor-toolbar {
    display: flex; flex-wrap: wrap;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    background: var(--gray-100);
    padding: 4px;
    gap: 2px;
}
.editor-toolbar button {
    border: 0;
    background: transparent;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
}
.editor-toolbar button:hover { background: var(--gray-200); }
.editor-toolbar .divider-v { width: 1px; background: var(--border); margin: 4px 4px; }
.editor-content {
    border: 1px solid var(--border);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    min-height: 180px;
    padding: 12px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
}
.editor-content:focus { border-color: var(--primary); }

/* ============== Search / form layout ============== */
.search-form {
    display: flex; gap: 8px;
    padding: 12px 16px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.search-form .form-control, .search-form .form-select { width: auto; min-width: 180px; }

/* Auth (login) form inputs - spacious, soft, slightly smaller radius */
.auth-form .form-group {
    margin-bottom: 12px;
}
.auth-form .form-group input {
    border: 1px solid #ddd;
    padding: 14px;
    width: 100%;
    border-radius: 4px;
    height: auto;
    min-height: 48px;
    font-size: 14px;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.auth-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    outline: none;
}

/* Auth form checkbox - aligned with label, comfortable hit area */
.auth-form .form-group .checkbox {
    align-items: center;
    display: flex;
}
.auth-form .form-group .checkbox input {
    min-height: 20px;
    width: 20px;
}

/* Empty state with FA icon */
.empty-state .icon i, .empty-state .icon .fa-solid, .empty-state .icon .fa-regular { font-size: 56px; opacity: 0.4; color: var(--gray-400); }
.empty-state .icon { font-size: inherit; opacity: inherit; }

/* ============== Rich text editor (custom, FA icons, image upload) ============== */
.editor-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.editor-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    background: var(--gray-100);
    border-bottom: 1px solid var(--border);
}
.editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    color: var(--gray-700);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    font-family: inherit;
}
.editor-btn:hover { background: #fff; border-color: var(--border); color: var(--dark); }
.editor-btn:active { background: var(--gray-200); }
.editor-btn .editor-btn-text { font-weight: 700; font-size: 13px; line-height: 1; }
.editor-btn i { font-size: 13px; line-height: 1; }
.editor-btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    padding: 0 12px;
    gap: 6px;
    font-weight: 500;
}
.editor-btn-primary:hover {
    background: var(--primary-dark, #189c92);
    border-color: var(--primary-dark, #189c92);
    color: #fff;
}
.editor-btn-primary i { font-size: 12px; }
.divider-v {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}
.editor-content {
    min-height: 220px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--dark);
    outline: none;
    overflow-y: auto;
    max-height: 480px;
    font-family: inherit;
}
.editor-content:empty::before {
    content: attr(data-placeholder);
    color: var(--gray-400);
    pointer-events: none;
}
.editor-content h1, .editor-content h2, .editor-content h3 { margin: 12px 0 8px; font-weight: 600; }
.editor-content h2 { font-size: 18px; }
.editor-content p  { margin: 0 0 10px; }
.editor-content blockquote {
    margin: 10px 0;
    padding: 8px 14px;
    border-left: 3px solid var(--primary);
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0 4px 4px 0;
}
.editor-content pre {
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    overflow-x: auto;
}
.editor-content code { background: var(--gray-100); padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }
.editor-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 8px 0; }
.editor-content a { color: var(--primary); text-decoration: underline; }
.editor-content ul, .editor-content ol { padding-left: 22px; margin: 8px 0; }
.editor-content li { margin: 4px 0; }
.editor-content table { border-collapse: collapse; margin: 8px 0; }
.editor-content th, .editor-content td { border: 1px solid var(--border); padding: 6px 10px; }
.editor-drag { background: rgba(79, 70, 229, 0.05); }
.editor-file-input { display: none; }
.editor-uploading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin: 8px 0;
    background: var(--gray-100);
    border: 1px dashed var(--border);
    border-radius: 4px;
    color: var(--gray-600);
    font-size: 13px;
}

/* Editor modals (preview + help) */
.editor-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.editor-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.editor-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--gray-100);
}
.editor-modal-header h3 { margin: 0; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--dark); }
.editor-modal-close {
    width: 30px; height: 30px;
    border: 0; background: transparent;
    color: var(--gray-600);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.editor-modal-close:hover { background: var(--gray-200); color: var(--dark); }
.editor-modal-body { padding: 18px; overflow-y: auto; }
.editor-modal-body h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--dark); }
.editor-modal-body ul { padding-left: 20px; margin: 0 0 14px; }
.editor-modal-body li { margin: 6px 0; color: var(--gray-700); }
.editor-preview-body { background: #fff; min-height: 120px; }
.editor-preview-body p { margin: 0 0 10px; }

/* ============== WHMCS-style form layout (2-col dense grid) ============== */
.form-grid-2col {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 14px;
}
.form-section-divider {
    margin: 22px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
}
.form-section-divider:empty { display: none; }

/* Input groups (button next to an input) */
.input-group {
    display: flex; align-items: stretch; gap: 6px;
}
.input-group > .form-control { flex: 1; min-width: 0; }
.input-group > .btn { white-space: nowrap; }
.input-group-prepend {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0 10px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--gray-700);
    font-size: 13px;
}
.input-group > .form-control {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* WHMCS-style "Email Notifications" checkbox rows (stacked, label + em description) */
.checkbox-grid {
    display: flex; flex-direction: column; gap: 6px;
    margin-bottom: 8px;
}
.checkbox-row {
    display: flex; align-items: flex-start; gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-700);
}
.checkbox-row input[type="checkbox"] { margin-top: 2px; flex: none; }
.checkbox-row > span { font-weight: 600; color: var(--dark); }
.checkbox-row > em { font-style: normal; color: var(--gray-500); margin-left: 4px; font-weight: 400; }

/* WHMCS-style "Settings" toggle rows in 3-col grid */
.toggle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 18px;
    margin-bottom: 8px;
}
@media (max-width: 768px) {
    .toggle-grid { grid-template-columns: 1fr; }
}
.toggle-row {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
    font-size: 13px;
    color: var(--gray-700);
}
.toggle-row input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 38px; height: 20px;
    background: var(--gray-300);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background 0.18s;
    flex: none;
    margin: 0;
}
.toggle-row input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.18s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle-row input[type="checkbox"]:checked {
    background: var(--primary);
}
.toggle-row input[type="checkbox"]:checked::after {
    left: 20px;
}
.toggle-row > .toggle-text { font-size: 13px; }

/* Radio row (Owner section) */
.radio-row {
    display: flex; flex-direction: column; gap: 6px;
}
.radio {
    display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
}
.radio input[type="radio"] { margin: 0; }

/* "Check All" link below checkbox grid */
.link-muted {
    color: var(--gray-500);
    font-size: 12px;
    text-decoration: none;
}
.link-muted:hover { color: var(--primary); }

/* Big primary submit button */
.btn-lg {
    padding: 10px 24px;
    font-size: 14px;
}

/* Empty grid cell that holds a row open (e.g. when only the right column has a field) */
.form-spacer {
    /* Reserves a row in the 2-col grid with matching label/control height */
    min-height: 60px;
}

/* ============== WHMCS-style filter bar (5-col + actions) ============== */
.whmcs-filter-bar {
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}
.whmcs-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr) auto;
    gap: 12px;
    align-items: end;
}
@media (max-width: 992px) {
    .whmcs-filter-grid { grid-template-columns: repeat(2, 1fr); }
    .whmcs-filter-grid .filter-actions { grid-column: 1 / -1; }
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: 12px; color: var(--gray-700); font-weight: 500; }
.filter-actions { display: flex; gap: 6px; align-items: end; }
.filter-actions .btn { height: 38px; }

/* Client List 2-Row Filter Grid & Action Bar */
.client-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 12px !important;
}
@media (max-width: 1200px) {
    .client-filter-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 768px) {
    .client-filter-grid {
        grid-template-columns: 1fr !important;
    }
}
.client-filter-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 12px;
}
.client-filter-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whmcs-advanced {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.whmcs-advanced .form-group { margin: 0; }
.whmcs-advanced label { font-size: 13px; color: var(--gray-700); display: inline-flex; gap: 6px; align-items: center; }

/* ============== WHMCS-style bulk action bar ============== */
.whmcs-bulk-form { margin-top: 8px; }
.whmcs-bulk-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    flex-wrap: wrap;
    gap: 12px;
}
.bulk-count { font-size: 13px; color: var(--gray-700); }
.bulk-count strong { color: var(--dark); font-size: 14px; }
.bulk-controls { display: flex; gap: 8px; align-items: center; }
.bulk-controls .form-select { width: auto; min-width: 160px; height: 32px; padding: 2px 8px; font-size: 12px; }
.bulk-toggle { font-size: 12px; color: var(--gray-700); }
.bulk-toggle .toggle-text { display: none; } /* reuse toggle-row pattern but smaller */
.bulk-toggle input[type="checkbox"] { width: 28px; height: 16px; }
.bulk-toggle input[type="checkbox"]::after { width: 12px; height: 12px; }
.bulk-toggle input[type="checkbox"]:checked::after { left: 14px; }

/* ============== International phone picker (flag + dial code + searchable list) ============== */
.intl-phone {
    position: relative;
    display: flex;
    align-items: stretch;
}
.intl-phone .intl-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 10px;
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    height: 38px;
    font-family: inherit;
    transition: background 0.12s;
}
.intl-phone .intl-trigger:hover { background: #fff; }
.intl-phone .intl-flag { font-size: 16px; line-height: 1; }
.intl-phone .intl-code { font-weight: 500; }
.intl-phone .intl-caret { font-size: 9px; color: var(--gray-500); margin-left: 2px; }
.intl-phone .intl-hidden { display: none; }
/* Pair: phone number input that comes right after the .intl-phone element */
.intl-phone-pair { display: flex; align-items: stretch; gap: 6px; }
.intl-phone-pair .intl-phone { flex: none; }
.intl-phone-pair .form-control {
    flex: 1; min-width: 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.intl-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 200;
    min-width: 280px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
}
.intl-dropdown[hidden] { display: none; }
.intl-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    font-size: 14px;
    background: var(--gray-100);
    outline: none;
    font-family: inherit;
}
.intl-list {
    list-style: none;
    margin: 0; padding: 4px 0;
    max-height: 260px;
    overflow-y: auto;
}
.intl-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-700);
    transition: background 0.1s;
}
.intl-item:hover, .intl-item.active { background: var(--primary-light); color: var(--primary); }
.intl-item.selected::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; color: var(--primary); }
.intl-item .intl-flag { font-size: 18px; line-height: 1; flex: none; width: 24px; text-align: center; }
.intl-item .intl-name { flex: 1; }
.intl-item .intl-name em { color: var(--gray-500); font-style: normal; margin-left: 4px; font-size: 12px; }
.intl-item .intl-dial { color: var(--gray-500); font-size: 12px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.intl-empty { padding: 14px; color: var(--gray-500); text-align: center; font-size: 13px; }

/* ============== WHMCS-style data table (purple header) ============== */
.whmcs-table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.table-whmcs {
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 0;
}
.table-whmcs thead th {
    background: var(--primary);
    color: #fff;
    text-align: left;
    font-weight: 600;
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 0;
    border-right: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}
.table-whmcs thead th:last-child { border-right: 0; }
.table-whmcs thead th.th-check { width: 32px; padding: 0 0 0 14px; background: var(--primary); }
.table-whmcs tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: middle;
}
.table-whmcs tbody tr:hover { background: rgba(79, 70, 229, 0.04); }
.table-whmcs tbody td.td-check { padding: 0 0 0 14px; }
.table-whmcs .th-sort {
    color: #fff;
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.table-whmcs .th-sort:hover { color: #fff; opacity: 0.85; }
.table-whmcs .sort-icon { font-size: 10px; opacity: 0.6; }
.table-whmcs .sort-icon.active { opacity: 1; color: #fff; }
.table-whmcs .link-cell { color: var(--primary); }
.table-whmcs .link-cell:hover { text-decoration: underline; }

/* Orders Module Component Styles */
.orders-hdr-bar {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.orders-hdr-btn {
    background: #0f766e !important;
    border-color: #0f766e !important;
    font-size: 12px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.orders-hdr-btn i {
    margin-right: 4px;
}
.orders-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.orders-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.orders-search-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.orders-field-row {
    display: flex;
    align-items: center;
    position: relative;
}
.orders-field-lbl {
    width: 130px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-align: right;
    padding-right: 12px;
}
.orders-input-sm {
    font-size: 12px !important;
    padding: 4px 8px !important;
}
.orders-search-footer {
    text-align: center;
    margin-top: 16px;
}
.orders-recs-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #475569;
}
.orders-tbl-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.orders-tbl {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}
.orders-tbl th {
    background: #0f766e !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
}
.orders-tbl-row {
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}
.orders-tbl td {
    padding: 10px 12px;
}
.orders-status-active {
    color: #10b981;
    font-weight: 700;
}
.orders-status-pending {
    color: #ef4444;
    font-weight: 700;
}
.orders-status-muted {
    color: #64748b;
}
.orders-bulk-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 6px;
    font-size: 12px;
}
.order-modal-card {
    background: #fff;
    width: 980px;
    max-width: 95%;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    max-height: 92vh;
    overflow-y: auto;
}
.order-modal-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    align-items: start;
}
.order-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
}
.order-summary-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}
.order-subtotal-row {
    padding: 12px 16px;
    background: #fef08a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid #fef08a;
}
.order-vat-row {
    padding: 12px 16px;
    background: #e0f2fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-bottom: 1px solid #e0f2fe;
}
.order-total-row {
    padding: 16px;
    background: #dcfce7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-submit-btn {
    background: #189c92 !important;
    border-color: #189c92 !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
    font-weight: 700 !important;
    width: 100%;
    border-radius: 4px;
}

/* System Settings Module Component Styles */
.sys-settings-hdr-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}
.sys-settings-title-group h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
}
.sys-settings-title-group p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}
.sys-setup-progress-box {
    text-align: right;
}
.sys-setup-link {
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 4px;
}
.sys-setup-link:hover {
    text-decoration: underline;
}
.sys-progress-track {
    width: 160px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: inline-flex;
    vertical-align: middle;
}
.sys-progress-fill {
    width: 22%;
    height: 100%;
    background: #10b981;
}
.sys-progress-text {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-left: 6px;
}

.sys-layout-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}
.sys-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sys-search-box {
    position: relative;
}
.sys-search-box i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 12px;
}
.sys-search-input {
    width: 100%;
    padding: 6px 10px 6px 28px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    color: #1e293b;
    background: #ffffff;
}
.sys-search-input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

.sys-cat-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.sys-cat-item {
    font-size: 13px;
    color: #475569;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 4px;
    border: none;
    background: transparent;
    border-left: 3px solid transparent;
}
.sys-cat-item:hover {
    background: #f8fafc;
    color: #0f172a;
}
.sys-cat-item.active {
    background: #eaf5ee;
    color: #166534;
    font-weight: 700;
    border-left: 3px solid #22c55e;
    border-radius: 0 4px 4px 0;
}

.sys-recent-block {
    margin-top: 10px;
}
.sys-recent-block h4 {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 10px 0;
}
.sys-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sys-recent-list li a {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
    display: block;
}
.sys-recent-list li a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.sys-main-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.sys-grid-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.sys-grid-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.sys-sort-select {
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #334155;
    background: #ffffff;
}

.sys-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.sys-card-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 12px 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 140px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.sys-card-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.sys-card-icon-wrap {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.sys-card-icon-wrap i {
    font-size: 32px;
    color: #cbd5e1;
    transition: color 0.15s ease;
}
.sys-card-item:hover .sys-card-icon-wrap i {
    color: #0f766e;
}
.sys-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.sys-card-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.3;
}
.sys-badge-updated {
    background: #0284c7;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 3px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.sys-badge-new {
    background: #16a34a;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 3px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* WHMCS General Settings Tabs Component Styles */
.gen-tabs-container {
    margin-bottom: 20px;
}
.gen-tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 0 4px;
    gap: 3px;
    border-bottom: none;
    flex-wrap: wrap;
}
.gen-tab-link {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}
.gen-tab-link:hover {
    background: #ffffff;
    color: #0f766e;
}
.gen-tab-link.active {
    background: #ffffff;
    color: #1e293b;
    font-weight: 700;
    border-color: #cbd5e1;
    border-bottom: 2px solid #ffffff;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.gen-tab-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.gen-tab-panel {
    display: none;
}
.gen-tab-panel.active {
    display: block;
}

.whmcs-table-form {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.whmcs-table-form td {
    padding: 9px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.whmcs-table-label {
    width: 220px;
    font-weight: 600;
    color: #475569;
    text-align: right;
    padding-right: 18px;
    background: #f8fafc;
    vertical-align: top !important;
    padding-top: 10px !important;
}
.whmcs-inline-desc {
    font-size: 12px;
    color: #64748b;
    margin-left: 10px;
}
.whmcs-help-block {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}
.badge-system-detected {
    background: #22c55e;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.whmcs-input-text {
    width: 100%;
    max-width: 380px;
    padding: 10px 10px;
    font-size: 13px;
    font-family: "Geomini", "Georama", "Geologica", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #1e293b;
    outline: none;
    background: #ffffff;
}
.whmcs-input-text:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

/* ==========================================================================
   CLIENTS MODULE COMPONENTS & MODALS
   ========================================================================== */

/* Search Box Container */
.clients-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 20px;
}

.clients-search-badge {
    width: 36px;
    height: 36px;
    background: #22c55e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.clients-search-btn {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    background: #0f766e;
    border: 1px solid #0f766e;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
}
.clients-search-btn:hover {
    background: #0d655e;
    border-color: #0d655e;
}

/* Table Bar & Stats */
.clients-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #475569;
}

.clients-jump-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.clients-jump-select {
    width: 70px;
    padding: 3px 6px;
    font-size: 12px;
    display: inline-block;
}

.clients-jump-btn {
    padding: 3px 10px;
    font-size: 12px;
}

/* Table Card Container & Header */
.clients-table-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 13px;
}

.clients-table thead tr {
    background: #0f766e !important;
    color: #ffffff !important;
    font-size: 12px;
    text-align: left;
}

.clients-table th {
    padding: 10px 14px;
    background: #0f766e !important;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
}

.clients-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
}

.clients-table tbody tr {
    transition: background 0.15s ease;
}
.clients-table tbody tr:hover {
    background: #f8fafc;
}

/* Email & Badges */
.clients-email-link {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.clients-email-link:hover {
    text-decoration: underline;
}

.clients-badge-2fa-enabled {
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.clients-badge-2fa-disabled {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Action Split Dropdown Button */
.clients-action-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.clients-btn-split-main {
    font-size: 12px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    border-radius: 4px 0 0 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.clients-btn-split-main:hover {
    background: #f8fafc;
}

.clients-btn-split-toggle {
    font-size: 10px;
    padding: 4px 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-left: none;
    color: #1e293b;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.clients-btn-split-toggle:hover {
    background: #f8fafc;
}

.clients-action-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    min-width: 210px;
    list-style: none;
    padding: 4px 0;
    text-align: left;
}

.clients-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 14px;
    font-size: 12px;
    color: #1e293b;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.clients-action-item:hover {
    background-color: #f1f5f9 !important;
    color: #0f766e !important;
}

/* Pagination Bar */
.clients-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.clients-pagination-active {
    background: #1e5b88;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Fail-Proof Custom Overlay Modals */
.clients-modal-overlay {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.clients-modal-box {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    border: 1px solid #cbd5e1;
    margin: 20px;
}

.clients-modal-box-sm {
    max-width: 560px;
}

.clients-modal-hdr {
    background: #1e5b88;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clients-modal-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.clients-modal-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.clients-modal-body {
    padding: 24px 30px;
    max-height: 75vh;
    overflow-y: auto;
}

.clients-modal-ftr {
    background: #ffffff;
    border-top: 1px solid #cbd5e1;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clients-modal-ftr-right {
    justify-content: flex-end;
    gap: 8px;
}

.clients-btn-danger {
    background: #e11d48;
    border: 1px solid #e11d48;
    font-size: 13px;
    padding: 6px 18px;
    font-weight: 600;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}
.clients-btn-danger:hover {
    background: #be123c;
    border-color: #be123c;
}

.clients-btn-primary {
    background: #1e5b88;
    border: 1px solid #1e5b88;
    font-size: 13px;
    padding: 6px 22px;
    font-weight: 600;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
}
.clients-btn-primary:hover {
    background: #18496e;
    border-color: #18496e;
}

.clients-btn-secondary {
    font-size: 13px;
    padding: 6px 18px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 4px;
    cursor: pointer;
}
.clients-btn-secondary:hover {
    background: #f8fafc;
}

/* Filter & Condition Panels */
.clients-filter-panel {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.clients-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}

/* ==========================================================================
   ORDERS MODULE COMPONENTS
   ========================================================================== */

.orders-filter-container {
    margin-bottom: 20px;
}

.orders-toggle-tab i {
    color: #2563eb;
}

.orders-card-box {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.orders-search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-bottom: 24px;
    position: relative;
}

.orders-field-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.orders-field-col-bordered {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid #f1f5f9;
    padding-left: 32px;
}

.orders-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.orders-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-search-input {
    flex: 1;
    max-width: 100%;
    height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
}

.orders-search-select {
    flex: 1;
    max-width: 100%;
    height: 42px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}

.orders-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.orders-icon-badge-amber { background: #fef3c7; color: #d97706; }
.orders-icon-badge-blue { background: #eff6ff; color: #3b82f6; }
.orders-icon-badge-cyan { background: #e0f2fe; color: #0284c7; }
.orders-icon-badge-green { background: #ecfdf5; color: #10b981; }
.orders-icon-badge-purple { background: #f3e8ff; color: #a855f7; }
.orders-icon-badge-indigo { background: #e0e7ff; color: #4f46e5; }
.orders-icon-badge-emerald { background: #d1fae5; color: #059669; }
.orders-icon-badge-slate { background: #f1f5f9; color: #64748b; }

.orders-search-actions {
    text-align: center;
}

.orders-search-btn-primary {
    background: #0f766e;
    border: 1px solid #0f766e;
    padding: 10px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15,118,110,0.25);
    cursor: pointer;
}
.orders-search-btn-primary:hover {
    background: #0d655e;
    border-color: #0d655e;
}

.orders-toggle-tab {
    font-size: 15px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    color: #1e293b;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Orders Table Column Widths & Alignments */
.orders-tbl-th-check { width: 30px; text-align: center; }
.orders-tbl-th-id { width: 70px; }
.orders-tbl-th-num { width: 120px; }
.orders-tbl-th-date { width: 130px; }
.orders-tbl-th-paymethod { width: 120px; }
.orders-tbl-th-total { width: 110px; text-align: right; }
.orders-tbl-th-paystatus { width: 120px; }
.orders-tbl-th-status { width: 90px; }
.orders-tbl-th-actions { width: 90px; text-align: center; }

.orders-tbl-empty { text-align: center; padding: 20px; color: #94a3b8; }
.orders-td-center { text-align: center; }
.orders-td-bold { font-weight: 600; color: #334155; }
.orders-td-date { color: #475569; white-space: nowrap; }
.orders-td-muted { color: #475569; }
.orders-td-amount { text-align: right; color: #1e293b; font-weight: 600; }
.orders-td-actions { text-align: center; white-space: nowrap; }

.orders-pay-complete { color: #475569; }
.orders-pay-incomplete { color: #ef4444; font-weight: 700; }

.orders-act-view { color: #0f766e; margin-right: 8px; font-size: 13px; text-decoration: none; }
.orders-act-view:hover { color: #0d655e; }
.orders-act-edit { color: #0284c7; margin-right: 8px; font-size: 13px; text-decoration: none; }
.orders-act-edit:hover { color: #0369a1; }
.orders-act-del { color: #dc2626; padding: 0; font-size: 13px; border: none; background: none; cursor: pointer; }
.orders-act-del:hover { color: #b91c1c; }

/* Orders Bulk Actions Bar */
.orders-bulk-lbl { font-size: 12px; color: #475569; font-weight: 600; }
.orders-bulk-btn-accept { background: #10b981 !important; border-color: #10b981 !important; font-size: 11px !important; padding: 4px 10px !important; cursor: pointer; }
.orders-bulk-btn-accept:hover { background: #059669 !important; border-color: #059669 !important; }
.orders-bulk-btn { font-size: 11px !important; padding: 4px 10px !important; cursor: pointer; }
.orders-bulk-btn-delete { cursor: pointer; }

/* Orders Pagination Classes */
.orders-page-btn { font-size: 12px !important; padding: 3px 10px !important; }
.orders-page-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.orders-page-num { font-size: 12px !important; padding: 2px 8px !important; }
.orders-page-dots { color: #64748b; padding: 0 4px; }
.orders-page-curr { background: #0f766e; color: #fff; font-weight: 700; padding: 3px 9px; border-radius: 4px; font-size: 12px; display: inline-block; }

/* Orders Add & Edit Modals Shared */
.orders-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.orders-modal-title { margin: 0; font-size: 18px; color: #1e293b; font-weight: 700; }
.orders-modal-left-col { display: flex; flex-direction: column; gap: 16px; }
.orders-modal-fields-group { display: grid; grid-template-columns: 1fr; gap: 10px; }

.orders-client-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 130px;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99999;
    max-height: 180px;
    overflow-y: auto;
}
.orders-client-drop-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #1e293b;
}
.orders-client-drop-item:hover {
    background: #f1f5f9;
}
.orders-client-drop-item span {
    color: #64748b;
}

.orders-w-220 { width: 220px; }
.orders-w-180 { width: 180px; }
.orders-w-240 { width: 240px; }
.orders-w-120 { width: 120px; }
.orders-w-80 { width: 80px; }
.orders-gap-8 { gap: 8px; }

.orders-promo-link {
    font-size: 11px !important;
    padding: 3px 8px !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.orders-checkbox-row {
    display: flex;
    align-items: center;
    margin-top: 4px;
    padding-left: 130px;
    gap: 16px;
}
.orders-check-lbl {
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}
.orders-accent-teal { accent-color: #0f766e; }

.orders-box-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 12px;
}
.orders-box-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.orders-help-note {
    font-size: 11px;
    color: #64748b;
    margin-left: 8px;
}
.orders-btn-offset {
    margin-top: 12px;
    padding-left: 130px;
}
.orders-btn-sm-subtle {
    font-size: 11px !important;
    padding: 3px 10px !important;
}

.orders-domain-types {
    display: flex;
    align-items: center;
    gap: 16px;
}
.orders-radio-lbl {
    font-size: 12px;
    color: #475569;
    cursor: pointer;
}

.orders-modal-right-col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.orders-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-top: 0;
    margin-bottom: 14px;
}
.orders-summary-items {
    padding: 14px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    border-bottom: 1px dashed #cbd5e1;
    background: #fafafa;
}
.orders-subtotal-lbl { font-weight: 600; color: #854d0e; }
.orders-subtotal-val { font-weight: 700; color: #854d0e; }
.orders-vat-lbl { color: #0369a1; }
.orders-vat-val { font-weight: 700; color: #0369a1; }
.orders-total-lbl { font-size: 20px; font-weight: 700; color: #15803d; }
.orders-total-val { font-size: 22px; font-weight: 800; color: #15803d; }

/* Edit Order Modal */
.orders-edit-modal-card { max-width: 620px; }
.orders-edit-modal-title {
    margin: 0;
    font-size: 17px;
    color: #1e293b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.orders-icon-sky { color: #0284c7; }
.orders-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.orders-grid-col-full { grid-column: 1 / -1; }
.orders-edit-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
    display: block;
}
.orders-edit-input {
    font-size: 12.5px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}
.orders-edit-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}
.orders-edit-btn-cancel {
    height: 34px;
    padding: 0 16px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
}
.orders-edit-btn-save {
    height: 34px;
    padding: 0 18px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    background: #0284c7 !important;
    border-color: #0284c7 !important;
}

/* Delete Single Order Confirmation Modal */
.orders-del-modal-card { max-width: 440px; }
.orders-del-header { background: #dc2626; }
.orders-del-title { display: flex; align-items: center; gap: 8px; }
.orders-del-body { padding: 20px; }
.orders-del-msg { font-size: 13px; color: #334155; margin: 0; }
.orders-del-footer { padding: 0 20px 16px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.orders-del-btn-cancel { border: 1px solid #cbd5e1; background: #ffffff; color: #475569; font-size: 13px; padding: 6px 18px; border-radius: 4px; }
.orders-del-btn-confirm { background: #dc2626 !important; border-color: #dc2626 !important; color: #ffffff; font-size: 13px; padding: 6px 18px; border-radius: 4px; font-weight: 600; }

/* Empty Selection / Error Modal Standard (Matching Reference media_1789998642155.png) */
.crm-modal-overlay.is-highest { z-index: 999999; }
.crm-error-modal-card {
    position: relative;
    width: 420px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 18px;
    padding: 28px 24px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.18);
}
.crm-error-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}
.crm-error-modal-close:hover {
    color: #0f172a;
}
.crm-error-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 4px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crm-error-halo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fee2e2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crm-error-inner-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3.5px solid #ef4444;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}
.crm-error-dot {
    position: absolute;
    border-radius: 50%;
    background: #fca5a5;
}
.crm-error-dot.dot-1 { width: 12px; height: 12px; top: 40%; left: 4px; opacity: 0.7; }
.crm-error-dot.dot-2 { width: 8px; height: 8px; bottom: 18%; left: 14px; opacity: 0.5; }
.crm-error-dot.dot-3 { width: 9px; height: 9px; top: 22%; right: 12px; opacity: 0.5; }
.crm-error-dot.dot-4 { width: 11px; height: 11px; bottom: 35%; right: 2px; opacity: 0.7; }

.crm-error-modal-title {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
}
.crm-error-modal-msg {
    margin: 0 0 18px 0;
    font-size: 15px;
    font-weight: 500;
    color: #475569;
    line-height: 1.4;
}

.crm-error-alert-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    margin-bottom: 22px;
}
.crm-error-alert-icon {
    color: #ef4444;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.crm-error-alert-content {
    flex: 1;
}
.crm-error-alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
}
.crm-error-alert-desc {
    font-size: 13px;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.crm-error-modal-btn {
    background: #005f56;
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 54px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    outline: none;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 95, 86, 0.25);
}
.crm-error-modal-btn:hover {
    background: #004d46;
    transform: translateY(-1px);
}
/* ==========================================================================
   WHMCS ADD / EDIT ORDER PAGE STYLES (admin/orders/create.php)
   ========================================================================== */
.whmcs-order-container {
    padding: 0 4px 30px 4px;
}
.whmcs-order-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
}
.whmcs-order-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) {
    .whmcs-order-grid {
        grid-template-columns: 1fr;
    }
}
.whmcs-box-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.whmcs-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-top: 0;
    margin-bottom: 14px;
}
.whmcs-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.whmcs-field-row:last-child {
    margin-bottom: 0;
}
.whmcs-field-lbl {
    width: 130px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    text-align: right;
    padding-right: 14px;
}
.whmcs-control-sm {
    height: 30px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}
.whmcs-control-sm:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.whmcs-w-340 { width: 340px; }
.whmcs-w-260 { width: 260px; }
.whmcs-w-220 { width: 220px; }
.whmcs-w-200 { width: 200px; }
.whmcs-w-180 { width: 180px; }
.whmcs-w-120 { width: 120px; }
.whmcs-w-110 { width: 110px; }
.whmcs-w-70 { width: 70px; }
.whmcs-w-280 { width: 280px; }

.whmcs-promo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.whmcs-promo-link {
    font-size: 11.5px;
    color: #0284c7;
    text-decoration: none;
}
.whmcs-promo-link:hover {
    text-decoration: underline;
}

.whmcs-checkboxes-row {
    margin-top: 12px;
}
.whmcs-checkboxes-group {
    display: flex;
    align-items: center;
    gap: 18px;
}
.whmcs-check-lbl {
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.whmcs-accent-teal {
    accent-color: #0f766e;
}

.whmcs-price-override-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.whmcs-help-note {
    font-size: 11px;
    color: #64748b;
}

.whmcs-addons-section {
    display: none;
    margin-top: 10px;
}
.whmcs-addons-row {
    align-items: flex-start;
}
.whmcs-addons-lbl {
    padding-top: 2px;
}
.whmcs-addons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 550px;
}
.whmcs-addon-item-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    margin: 0;
    padding: 2px 0;
}
.whmcs-addon-chk-input {
    accent-color: #0f766e;
    width: 15px;
    height: 15px;
}
.whmcs-addon-meta {
    color: #64748b;
}

.whmcs-custom-fields-section {
    display: none;
    margin-top: 4px;
}
.whmcs-custom-fields-heading {
    margin: 10px 0 8px 130px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    letter-spacing: 0.02em;
}
.whmcs-req-star {
    color: #dc2626;
}

.whmcs-btn-offset {
    margin-top: 14px;
    padding-left: 130px;
}
.whmcs-btn-green-add {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #166534;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.whmcs-btn-green-add:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}
.whmcs-btn-green-add i {
    color: #16a34a;
    font-size: 12px;
}

.whmcs-domain-reg-row {
    margin-bottom: 12px;
}
.whmcs-domain-type-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.whmcs-domain-type-lbl {
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.whmcs-domains-container {
    display: none;
}
.whmcs-domain-add-wrap {
    margin-top: 10px;
    padding-left: 130px;
    display: none;
}

.whmcs-entry-remove-wrap {
    text-align: right;
    margin-bottom: 6px;
}
.whmcs-btn-remove-entry {
    font-size: 11px !important;
    padding: 2px 8px !important;
}

/* Order Summary Box */
.whmcs-summary-wrapper {
    display: flex;
    flex-direction: column;
}
.whmcs-summary-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 12px 0;
}
.whmcs-summary-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}
.whmcs-summary-items-list {
    padding: 12px 14px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px dashed #cbd5e1;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.whmcs-summary-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #1e293b;
}
.whmcs-summary-item-discount {
    color: #dc2626;
}
.whmcs-summary-subtotal {
    padding: 10px 14px;
    background: #fef08a; /* WHMCS pastel yellow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #854d0e;
    border-bottom: 1px solid #fef08a;
}
.whmcs-summary-vat {
    padding: 10px 14px;
    background: #e0f2fe; /* WHMCS pastel light blue */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    border-bottom: 1px solid #e0f2fe;
}
.whmcs-summary-total {
    padding: 12px 14px;
    background: #dcfce7; /* WHMCS pastel light green */
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whmcs-summary-total-lbl {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}
.whmcs-summary-total-val {
    font-size: 20px;
    font-weight: 800;
    color: #15803d;
}
.whmcs-submit-order-btn {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.whmcs-submit-order-btn:hover {
    background: #1d4ed8;
}
.whmcs-product-entry {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #cbd5e1;
}
.whmcs-product-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.whmcs-domain-entry {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #cbd5e1;
}
.whmcs-domain-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* ==========================================================================
   SUPPORT & PRIMARY TABS STYLES
   ========================================================================== */
.tabs.support-primary-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #cbd5e1;
    gap: 6px;
}
.tabs.support-primary-tabs li {
    margin: 0;
}
.tabs.support-primary-tabs li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    text-decoration: none;
    transition: all 0.15s ease;
}
.tabs.support-primary-tabs li.active a,
.tabs.support-primary-tabs li a.active {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}
.tabs.support-primary-tabs li a:hover:not(.active) {
    background: #e2e8f0;
    color: #0f172a;
}

/* ==========================================================================
   QUOTES & QUOTE MANAGE COMPONENT STYLES
   ========================================================================== */
.quote-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}

.quote-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.quote-card-header-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.quote-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.quote-card-subtext {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.quote-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 36px;
    margin-bottom: 24px;
    position: relative;
}

.quote-field-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.quote-field-row {
    display: flex;
    flex-direction: column;
}

.quote-field-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.quote-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quote-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.quote-icon-badge-blue { background: #eff6ff; color: #3b82f6; }
.quote-icon-badge-cyan { background: #e0f2fe; color: #0284c7; }
.quote-icon-badge-emerald { background: #d1fae5; color: #059669; }
.quote-icon-badge-amber { background: #fef3c7; color: #d97706; }

.quote-action-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

/* Notes Textareas - Full Width & Clean Layout */
.quote-notes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.quote-notes-group {
    width: 100%;
}

.quote-notes-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: block;
    margin-bottom: 6px;
}

.quote-notes-hint {
    font-weight: 400;
    color: #64748b;
    font-size: 12px;
}

.quote-notes-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 80px;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    resize: vertical;
    font-family: inherit;
}
.quote-notes-textarea:focus {
    border-color: #0f766e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
}

/* =========================================================
   Dashboard Modern Components
   ========================================================= */

/* Grid Layouts */
.dash-row-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}
.dash-row-mid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 992px) {
    .dash-row-top,
    .dash-row-mid {
        grid-template-columns: 1fr;
    }
}

.dash-card-modern {
    border: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    border-radius: 14px;
    overflow: hidden;
    margin: 0;
    background: #fff;
}

/* Billing Summary Component */
.billing-summary-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    padding: 16px 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.billing-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.billing-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}
.billing-summary-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.billing-summary-subtitle {
    margin: 0;
    font-size: 11px;
    color: rgba(255,255,255,0.75);
}
.billing-summary-btn {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: background 0.15s;
}
.billing-summary-btn:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}

.billing-tiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.billing-stat-tile {
    border-radius: 12px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}
.billing-stat-tile::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.billing-tile-today {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #bbf7d0;
}
.billing-tile-today::after { background: rgba(16,185,129,0.1); }
.billing-tile-month {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
}
.billing-tile-month::after { background: rgba(59,130,246,0.1); }
.billing-tile-year {
    background: linear-gradient(135deg, #fdf4ff, #fae8ff);
    border: 1px solid #e9d5ff;
}
.billing-tile-year::after { background: rgba(168,85,247,0.1); }
.billing-tile-alltime {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
}
.billing-tile-alltime::after { background: rgba(249,115,22,0.1); }

.billing-tile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.billing-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}
.billing-tile-today .billing-tile-icon { background: #10b981; }
.billing-tile-month .billing-tile-icon { background: #3b82f6; }
.billing-tile-year .billing-tile-icon { background: #a855f7; }
.billing-tile-alltime .billing-tile-icon { background: #f97316; }

.billing-tile-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.billing-tile-today .billing-tile-label { color: #059669; }
.billing-tile-month .billing-tile-label { color: #2563eb; }
.billing-tile-year .billing-tile-label { color: #9333ea; }
.billing-tile-alltime .billing-tile-label { color: #ea580c; }

.billing-tile-value {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}
.billing-tile-today .billing-tile-value { color: #064e3b; }
.billing-tile-month .billing-tile-value { color: #1e3a8a; }
.billing-tile-year .billing-tile-value { color: #581c87; }
.billing-tile-alltime .billing-tile-value { color: #7c2d12; }

.billing-tile-sub {
    font-size: 10px;
    margin-top: 2px;
}
.billing-tile-today .billing-tile-sub { color: #6ee7b7; }
.billing-tile-month .billing-tile-sub { color: #93c5fd; }
.billing-tile-year .billing-tile-sub { color: #d8b4fe; }
.billing-tile-alltime .billing-tile-sub { color: #fdba74; }

.billing-collection-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.billing-collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
}
.billing-collection-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.billing-collection-percent {
    font-size: 13px;
    font-weight: 800;
}
.billing-progress-track {
    background: #e2e8f0;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}
.billing-progress-fill {
    height: 7px;
    border-radius: 999px;
    transition: width 0.6s ease;
}
.billing-collection-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 10px;
    color: #94a3b8;
}

.billing-badges-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.billing-action-tile {
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}
.billing-action-tile:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.billing-action-tile-outstanding {
    background: #fff8f0;
    border: 1.5px solid #fed7aa;
}
.billing-action-tile-overdue-alert {
    background: #fff5f5;
    border: 1.5px solid #fecaca;
}
.billing-action-tile-overdue-clear {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
}
.billing-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.billing-action-tile-outstanding .billing-action-icon {
    background: #fff3cd;
    color: #f97316;
}
.billing-action-tile-overdue-alert .billing-action-icon {
    background: #fee2e2;
    color: #ef4444;
}
.billing-action-tile-overdue-clear .billing-action-icon {
    background: #dcfce7;
    color: #10b981;
}

.billing-action-amount {
    font-size: 13px;
    font-weight: 800;
}
.billing-action-tile-outstanding .billing-action-amount { color: #9a3412; }
.billing-action-tile-overdue-alert .billing-action-amount { color: #7f1d1d; }
.billing-action-tile-overdue-clear .billing-action-amount { color: #064e3b; }

.billing-action-desc {
    font-size: 10px;
    font-weight: 600;
}
.billing-action-tile-outstanding .billing-action-desc { color: #ea580c; }
.billing-action-tile-overdue-alert .billing-action-desc { color: #dc2626; }
.billing-action-tile-overdue-clear .billing-action-desc { color: #059669; }

/* Client Activity Component */
.client-activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
}
.client-activity-header-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f766e;
    display: flex;
    align-items: center;
    gap: 8px;
}
.client-activity-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 13px;
}
.client-activity-tools i {
    cursor: pointer;
    transition: color 0.15s;
}
.client-activity-tools i:hover {
    color: #0f766e;
}
.client-activity-counters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 18px;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.client-activity-counter-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.client-activity-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.client-activity-ring-amber {
    border: 2px solid #f59e0b;
    color: #f59e0b;
}
.client-activity-ring-green {
    border: 2px solid #22c55e;
    color: #22c55e;
}
.client-activity-counter-label {
    font-size: 12px;
    color: #334155;
    font-weight: 500;
}
.client-activity-counter-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.client-activity-counter-value-amber { color: #d97706; }
.client-activity-counter-value-green { color: #16a34a; }
.client-activity-counter-sub {
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
}

.client-activity-list {
    max-height: 280px;
    overflow-y: auto;
    flex: 1;
}
.client-activity-item {
    padding: 10px 18px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.15s;
}
.client-activity-item:hover {
    background: #f8fafc;
}
.client-activity-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-activity-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s;
}
.client-activity-name a:hover {
    color: #0f766e;
}
.client-activity-ip {
    font-size: 12px;
    font-style: italic;
    color: #0ea5e9;
    margin-top: 2px;
}
.client-activity-meta {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

/* To-Do List Component */
.todo-card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.todo-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.todo-card-body {
    padding: 0;
    flex: 1;
    max-height: 360px;
    overflow-y: auto;
}
.todo-item-modern {
    padding: 12px 18px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: background 0.15s;
}
.todo-item-modern:hover {
    background: #f8fafc;
}
.todo-title-modern {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.todo-meta-modern {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}
.todo-badge-modern {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Automation Overview Component */
.automation-card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.automation-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.automation-header-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
.automation-card-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.automation-card-subtitle {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
}
.automation-view-all-btn {
    background: linear-gradient(135deg, #0f766e, #0d9488);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.15s;
}
.automation-view-all-btn:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}
.automation-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.automation-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s, box-shadow 0.15s;
}
.automation-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.automation-tile-name {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.automation-tile-count {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 10px;
}
.automation-tile-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.automation-tile-last {
    font-size: 11px;
    color: #94a3b8;
}

/* =========================================================
   Modern Table Top Bar Component
   ========================================================= */
.table-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.table-top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.table-record-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}
.table-record-icon {
    color: #0f766e;
    font-size: 14px;
}
.table-record-info strong {
    color: #0f172a;
    font-weight: 700;
}
.table-selected-badge {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.table-top-bar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.table-per-page-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.table-per-page-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}
.table-per-page-label i {
    color: #94a3b8;
    font-size: 11px;
}
.per-page-select {
    width: auto;
    height: 32px;
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px 28px 2px 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.per-page-select:focus {
    border-color: #0f766e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.table-quick-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px 6px;
}
.btn-page-nav {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.15s;
}
.btn-page-nav:hover:not(.disabled) {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    text-decoration: none;
}
.btn-page-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
}
.page-indicator {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    padding: 0 6px;
}

/* Modal Overlay & Perfect Center Alignment */
.crm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}
.crm-modal-overlay.open,
.crm-modal-overlay.active,
.crm-modal-overlay.show {
    display: flex !important;
}
.crm-modal-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 92vh;
    overflow-y: auto;
    margin: auto !important;
    position: relative;
}

/* User Action Dropdown Menu & Items */
.user-dropdown-item {
    transition: background 0.15s ease, color 0.15s ease;
}
.user-dropdown-item:hover,
.user-dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* =========================================================
   Invoice Details Screen (admin/billing/view.php)
   WHMCS Style Invoice Management Components
   ========================================================= */

.invoice-details-wrap {
    padding: 0 4px 20px;
}

/* Top Header & Action Buttons */
.invoice-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.invoice-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.3px;
}
.invoice-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.invoice-action-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    line-height: 1.4;
}
.invoice-action-btn:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}
.invoice-action-btn-group {
    display: inline-flex;
    align-items: stretch;
}
.invoice-action-btn-group > .invoice-action-btn,
.invoice-action-btn-group > .invoice-dropdown-wrap > .invoice-action-btn {
    border-radius: 0;
    margin-left: -1px;
}
.invoice-action-btn-group > .invoice-action-btn:first-child,
.invoice-action-btn-group > .invoice-dropdown-wrap:first-child > .invoice-action-btn {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-left: 0;
}
.invoice-action-btn-group > .invoice-dropdown-wrap:last-child > .invoice-action-btn,
.invoice-action-btn-group > .invoice-action-btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.invoice-dropdown-wrap {
    position: relative;
    display: inline-flex;
}
.invoice-dropdown-toggle.active,
.invoice-dropdown-wrap.open > .invoice-dropdown-toggle {
    background: #d4d4d8 !important;
    border-color: #a1a1aa !important;
    color: #18181b !important;
}
.invoice-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    z-index: 1050;
    padding: 6px 0;
    margin-top: 3px;
}
.invoice-dropdown-menu.show,
.invoice-dropdown-wrap.open > .invoice-dropdown-menu {
    display: block;
}
.invoice-dropdown-item {
    display: block;
    padding: 7px 18px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.invoice-dropdown-item:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

/* Navigation Tabs Strip */
.invoice-tabs-nav {
    margin-bottom: 18px;
    border-bottom: 1px solid #cbd5e1;
    display: flex;
    gap: 4px;
}
.invoice-tab-link {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid transparent;
    color: #64748b;
    transition: all 0.15s ease;
}
.invoice-tab-link:hover {
    color: #0f766e;
    background: #f1f5f9;
    text-decoration: none;
}
.invoice-tab-link.active {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: 2px solid #ffffff;
    color: #0f766e;
    margin-bottom: -1px;
}

/* Summary Card & 2-Column Split Box */
.invoice-summary-card {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
@media (max-width: 768px) {
    .invoice-summary-card {
        grid-template-columns: 1fr;
    }
}
.invoice-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #334155;
}
.invoice-summary-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.invoice-summary-table tr:last-child {
    border-bottom: none;
}
.invoice-summary-table td.label-col {
    padding: 7px 12px;
    font-weight: 600;
    color: #64748b;
    width: 140px;
    text-align: right;
}
.invoice-summary-table td.val-col {
    padding: 7px 12px;
    color: #1e293b;
}

/* Payment Status Controls Block */
.invoice-payment-status-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    border-left: 1px solid #f1f5f9;
    padding-left: 20px;
}
@media (max-width: 768px) {
    .invoice-payment-status-block {
        border-left: none;
        border-top: 1px solid #f1f5f9;
        padding-left: 0;
        padding-top: 16px;
    }
}
.invoice-status-badge-lg {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.invoice-status-badge-lg.status-unpaid { color: #dc2626; }
.invoice-status-badge-lg.status-paid { color: #16a34a; }
.invoice-status-badge-lg.status-cancelled { color: #64748b; }
.invoice-status-badge-lg.status-refunded { color: #d97706; }

.invoice-status-form-row {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.invoice-status-form-row label,
.invoice-status-form-row span {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}
.invoice-pm-select {
    font-size: 12px;
    height: 30px;
    padding: 2px 8px;
    border-radius: 4px;
    border-color: #cbd5e1;
    color: #1e293b;
    width: 180px;
}
.invoice-email-select {
    font-size: 12px;
    height: 30px;
    padding: 2px 8px;
    border-radius: 4px;
    border-color: #cbd5e1;
    color: #1e293b;
    width: 200px;
}
.invoice-btn-send-email {
    font-size: 12px;
    height: 30px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.invoice-btn-send-email:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
}
.invoice-btn-attempt-capture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: #5cb85c;
    border: 1px solid #4cae4c;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 0 16px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    box-sizing: border-box;
    line-height: 1;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.invoice-btn-attempt-capture:hover {
    background: #449d44;
    border-color: #398439;
    color: #ffffff;
}

/* Tab White Box Container */
.invoice-tab-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Add Payment Tab */
.invoice-addpayment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
}
@media (max-width: 768px) {
    .invoice-addpayment-grid {
        grid-template-columns: 1fr;
    }
}
.invoice-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}
.invoice-form-row label.form-row-label {
    width: 140px;
    text-align: right;
    padding-right: 14px;
    font-size: 13px;
    color: #334155;
    margin: 0;
    font-weight: 500;
    flex-shrink: 0;
}
.invoice-date-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.invoice-date-wrap .cal-icon {
    position: absolute;
    left: 8px;
    color: #64748b;
    font-size: 13px;
}
.invoice-date-input {
    font-size: 13px;
    height: 32px;
    padding-left: 28px;
    width: 150px;
    border-radius: 4px;
    border-color: #cbd5e1;
}
.invoice-control-sm {
    font-size: 13px;
    height: 32px;
    border-radius: 4px;
    border-color: #cbd5e1;
}
.invoice-btn-add-payment {
    background: #337ab7;
    border-color: #2e6da4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 4px;
    cursor: pointer;
}
.invoice-btn-add-payment:hover {
    background: #286090;
    border-color: #204d74;
}

/* Credit Tab */
.invoice-credit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: center;
}
@media (max-width: 640px) {
    .invoice-credit-grid {
        grid-template-columns: 1fr;
    }
}
.invoice-credit-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.invoice-credit-title {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    margin-bottom: 8px;
}
.invoice-credit-form {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.invoice-credit-input {
    width: 100px;
    height: 30px;
    font-size: 12px;
    text-align: center;
    border-color: #cbd5e1;
    border-radius: 4px;
}
.invoice-credit-go-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    height: 30px;
    padding: 0 14px;
    border-radius: 4px;
    cursor: pointer;
}
.invoice-credit-go-btn:hover {
    background-color: #e2e8f0;
}
.invoice-credit-avail-text {
    font-size: 12px;
    font-weight: 600;
}
.invoice-credit-avail-text.text-avail-green { color: #16a34a; }
.invoice-credit-avail-text.text-avail-red { color: #dc2626; }

/* Info Alert Banner (Refund & Notes empty state) */
.invoice-alert-banner {
    background: #d9edf7;
    border: 1px solid #bce8f1;
    color: #31708f;
    border-radius: 4px;
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.invoice-alert-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #31708f;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.invoice-alert-text {
    font-size: 13px;
}

/* Lower Section Tables (Invoice Items, Transactions, History) */
.invoice-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}
.invoice-table-card {
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}
.invoice-navy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.invoice-navy-table thead tr,
.invoice-navy-table thead th {
    background: #0f766e !important;
    color: #ffffff !important;
    padding: 8px 14px;
    font-weight: 600;
}
.invoice-navy-table thead th {
    border-right: 1px solid #115e59;
}
.invoice-navy-table thead th:last-child {
    border-right: none;
}
.invoice-navy-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}
.invoice-navy-table tbody td {
    padding: 8px 14px;
    color: #1e293b;
    border-right: 1px solid #f1f5f9;
}
.invoice-navy-table tbody td:last-child {
    border-right: none;
}
.invoice-navy-table tr.totals-row {
    background: #ffffff;
}
.invoice-navy-table tr.totals-row td.totals-label {
    padding: 6px 14px;
    text-align: right;
    font-weight: 600;
    color: #334155;
}
.invoice-navy-table tr.totals-row td.totals-val {
    padding: 6px 14px;
    text-align: right;
    font-weight: 600;
    color: #1e293b;
}
.invoice-navy-table tr.total-due-row,
.invoice-navy-table tr.total-due-row td {
    background: #0f766e !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
}
.invoice-floating-pdf {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 6px;
}
.invoice-floating-pdf a {
    color: #ef4444;
    font-size: 22px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.invoice-floating-pdf a:hover {
    transform: scale(1.1);
    opacity: 0.85;
}
.client-link-bold {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
}
.client-link-bold:hover {
    text-decoration: underline;
}
.client-invoices-sublink {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    margin-left: 6px;
}
.client-invoices-sublink:hover {
    color: #0284c7;
    text-decoration: underline;
}

/* Edit Mode Items & Actions */
.invoice-edit-textarea {
    width: 100%;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    resize: vertical;
    font-family: inherit;
    min-height: 48px;
    box-sizing: border-box;
}
.invoice-edit-textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.invoice-edit-amount {
    width: 100px;
    font-size: 12px;
    padding: 6px 8px;
    text-align: right;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    font-weight: 500;
}
.invoice-edit-amount:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.invoice-btn-save-changes {
    background: #337ab7;
    border: 1px solid #2e6da4;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.invoice-btn-save-changes:hover {
    background: #286090;
    border-color: #204d74;
    color: #ffffff;
    text-decoration: none;
}
.invoice-btn-cancel-changes {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.invoice-btn-cancel-changes:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}
.invoice-btn-mark-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 0 14px;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.invoice-btn-mark-status:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.invoice-with-selected-select {
    width: 165px;
    max-width: 165px;
    display: inline-block;
    font-size: 12px;
    height: 28px;
    padding: 2px 8px;
    border-radius: 4px;
    border-color: #cbd5e1;
    color: #475569;
}
.invoice-btn-add-item {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.invoice-btn-add-item:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.invoice-edit-actions-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

/* Modal Overlay & Modal Cards */
.crm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}
.crm-modal-overlay.show,
.crm-modal-overlay.open {
    display: flex;
}
.crm-modal-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 1000000;
    animation: modalIn 0.2s ease;
}

/* Invoice Input & Layout Classes */
.invoice-input-trans-id {
    width: 240px;
}
.invoice-input-amount-sm {
    width: 150px;
}
.invoice-form-checkbox {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #0284c7;
}
.invoice-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 16px;
}
.invoice-input-option {
    width: 180px;
}
.invoice-date-input-group {
    display: inline-flex;
    align-items: center;
    width: 180px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}
.invoice-date-addon {
    background: #f1f5f9;
    color: #64748b;
    padding: 0 8px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-right: 1px solid #cbd5e1;
    flex-shrink: 0;
}
.invoice-input-date {
    border: none !important;
    border-radius: 0 !important;
    height: 30px !important;
    padding: 2px 8px !important;
    width: 100% !important;
    font-size: 12px !important;
    background: transparent !important;
}
.invoice-tax-rate-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.invoice-tax-rate-group {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}
.invoice-tax-addon {
    background: #f1f5f9;
    color: #475569;
    padding: 0 7px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.invoice-tax-num {
    border-right: 1px solid #cbd5e1;
}
.invoice-tax-symbol {
    border-left: 1px solid #cbd5e1;
}
.invoice-tax-input {
    border: none !important;
    border-radius: 0 !important;
    height: 30px !important;
    width: 58px !important;
    padding: 2px 6px !important;
    text-align: right !important;
    font-size: 12px !important;
    background: transparent !important;
}
.invoice-refund-select {
    max-width: 380px;
}
.invoice-field-hint {
    font-size: 12px;
    color: #64748b;
}
.invoice-btn-refund {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 24px;
    border-radius: 4px;
    cursor: pointer;
}
.invoice-btn-refund:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}
.invoice-btn-refund:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8fafc;
}
.invoice-th-check {
    width: 36px;
    text-align: center;
}
.invoice-th-desc {
    width: 75%;
}
.invoice-th-amount {
    width: 120px;
}
.invoice-th-taxed {
    width: 60px;
    text-align: center;
}
.invoice-th-action {
    width: 36px;
}
.invoice-btn-item-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.invoice-btn-item-delete:hover {
    color: #b91c1c;
}
.invoice-table-footer-row {
    background: #f8fafc;
}
.invoice-table-footer-cell {
    padding: 6px 14px;
}
.invoice-badge-success {
    background: #dcfce7;
    color: #15803d;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    font-weight: 600;
}
.invoice-modal-card {
    width: 440px;
    max-width: 92%;
    padding: 24px;
    border-radius: 6px;
    text-align: center;
}
.invoice-modal-icon-danger {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}
.invoice-modal-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}
.invoice-modal-text {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
    line-height: 1.5;
}
.invoice-modal-desc-preview {
    color: #1e293b;
    display: inline-block;
    margin-top: 6px;
}
.invoice-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}
.invoice-modal-btn-cancel {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 500;
}
.invoice-modal-btn-delete {
    background: #dc2626;
    border-color: #dc2626;
    padding: 8px 22px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
}
.invoice-modal-btn-delete:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #ffffff;
}
.dynamic-item-row {
    background: #ffffff;
}
.invoice-th-pct-10 {
    width: 10%;
}
.invoice-th-pct-15 {
    width: 15%;
}
.invoice-th-pct-17 {
    width: 17%;
}
.invoice-th-pct-18 {
    width: 18%;
}
.invoice-th-pct-20 {
    width: 20%;
}
.invoice-th-pct-25 {
    width: 25%;
}
.invoice-th-pct-30 {
    width: 30%;
}
.invoice-cb-disabled {
    opacity: 0.3;
}

/* =========================================================
   Transactions Management Screen (admin/billing/transactions.php)
   ========================================================= */

.trans-header-wrap {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btn-add-trans {
    background: #0f766e;
    border-color: #0f766e;
    font-size: 12px;
    padding: 6px 16px;
    font-weight: 600;
}
.btn-add-trans:hover {
    background: #0d655e;
    border-color: #0d655e;
}
.trans-search-toggle-wrap {
    margin-bottom: 24px;
}
.orders-toggle-tab,
.btn-trans-toggle-search {
    font-size: 15px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    color: #1e293b;
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trans-search-panel {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0 12px 12px 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.trans-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 36px;
    margin-bottom: 24px;
    position: relative;
}
.trans-filter-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.trans-filter-col-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-left: 1px solid #f1f5f9;
    padding-left: 36px;
}
.trans-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}
.trans-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.trans-filter-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.trans-filter-icon.icon-slate {
    background: #f1f5f9;
    color: #475569;
}
.trans-filter-icon.icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}
.trans-filter-icon.icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}
.trans-filter-icon.icon-sky {
    background: #e0f2fe;
    color: #0284c7;
}
.trans-filter-icon.icon-amber {
    background: #fef3c7;
    color: #d97706;
}
.trans-filter-icon.icon-emerald {
    background: #d1fae5;
    color: #059669;
}
.trans-filter-input {
    flex: 1;
    max-width: 100%;
    height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    border-color: #cbd5e1;
    font-size: 13px;
}
.trans-filter-select {
    flex: 1;
    max-width: 100%;
    height: 42px;
    font-size: 13px;
    border-radius: 8px;
    border-color: #cbd5e1;
}
.trans-search-btn-wrap {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.btn-trans-search {
    background: #0f766e;
    border-color: #0f766e;
    padding: 10px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    cursor: pointer;
    color: #ffffff;
}
.btn-trans-search:hover {
    background: #0d655e;
    border-color: #0d655e;
    color: #ffffff;
}
.trans-chart-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.trans-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.trans-chart-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}
.trans-chart-canvas-wrap {
    height: 140px;
    position: relative;
    background: #fafafa;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 10px 16px;
}
.trans-chart-svg {
    overflow: visible;
}
.trans-metrics-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.trans-sub-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #475569;
}
.trans-page-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.trans-page-select {
    font-size: 11px;
    padding: 2px 6px;
    width: auto;
}
.trans-page-go-btn {
    font-size: 11px;
    padding: 2px 8px;
}
.trans-table-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.trans-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}
.trans-table-head {
    background: #0f766e !important;
    color: #ffffff !important;
}
.trans-table-head-row {
    background: #0f766e !important;
    color: #ffffff !important;
    font-size: 12px;
}
.trans-table-th {
    background: #0f766e !important;
    color: #ffffff !important;
    padding: 10px 12px;
    font-weight: 700;
}
.trans-table-row {
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}
.trans-table-cell {
    padding: 10px 12px;
}
.trans-table-empty {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}
.trans-id-subtext {
    font-size: 11px;
    color: #2563eb;
    margin-top: 2px;
}
.trans-action-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
.trans-action-icon-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.trans-pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    gap: 6px;
    font-size: 12px;
}
.trans-page-active {
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}
.trans-modal-card-lg {
    background: #ffffff;
    width: 680px;
    max-width: 92%;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.trans-modal-card-md {
    background: #ffffff;
    width: 540px;
    max-width: 92%;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}
.trans-modal-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}
.trans-modal-heading {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}
.trans-modal-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.trans-modal-grid-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.trans-modal-form-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.trans-modal-input-label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}
.trans-modal-input-sublabel {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
}
.trans-modal-input-sm {
    font-size: 12px;
}
.trans-client-autocomplete-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    max-height: 180px;
    overflow-y: auto;
}
.trans-client-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    color: #1e293b;
}
.trans-client-autocomplete-item:hover {
    background: #f8fafc;
}
.trans-modal-footer-row {
    text-align: right;
    margin-top: 20px;
    gap: 8px;
    display: flex;
    justify-content: flex-end;
}
















/* ========================================================= */
/* CLIENT VIEW STYLES & REFACTORED INLINE CLASSES (view.php) */
/* ========================================================= */
.flex-1 { flex: 1; }
.d-none { display: none !important; }
.m-0 { margin: 0 !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-14 { margin-bottom: 14px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.cv-s1 { margin-top:12px; margin-bottom:16px; display:flex; flex-direction:column; gap:8px; }
.cv-s2 { background:#fffde7; border:1px solid #fef08a; border-radius:4px; padding:10px 14px; }
.cv-s3 { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
.cv-s4 { font-size:13px; color:#854d0e; }
.cv-s5 { background:#ef4444; color:#fff; font-size:9px; padding:2px 5px; border-radius:3px; margin-left:6px; }
.cv-s6 { font-size:11px; color:#a16207; display:flex; align-items:center; gap:8px; }
.cv-s7 { color:#a16207; text-decoration:none; }
.cv-s8 { font-size:12px; color:#713f12; line-height:1.5; white-space:pre-wrap; }
.cv-s9 { padding:4px 0 10px; }
.cv-s10 { list-style:none; padding:0; margin:0 0 10px; }
.cv-s11 { padding:4px 0; border-bottom:1px solid #e2e8f0; }
.cv-s12 { font-weight:700; color:#1e293b; padding-top:6px; }
.cv-s13 { padding:4px 0 10px; text-align:center; }
.cv-s14 { padding:4px 0; border-bottom:1px solid #e2e8f0; display:flex; justify-content:space-between; }
.cv-s15 { justify-content:center; }
.cv-s16 { padding:4px 0; text-align:center; }
.cv-s17 { list-style:none; padding:0; margin:0; }
.cv-s18 { padding:4px 0; border-bottom:1px solid #e2e8f0; font-size:11px; }
.cv-s19 { display:flex; flex-direction:column; gap:6px; }
.cv-s20 { font-size:12px; text-decoration:none; }
.cv-s21 { background:none; border:none; padding:0; color:#dc2626; font-size:12px; cursor:pointer; font-family:inherit; }
.cv-s22 { display:flex; gap:6px; }
.cv-s23 { font-size:12px; height:32px; }
.cv-s24 { font-size:12px; margin-bottom:8px; }
.cv-s25 { text-align:center; }
.cv-s26 { width:32px; }
.cv-s27 { width:70px; }
.cv-s28 { display:flex; align-items:center; gap:8px; }
.cv-s29 { font-size:12px; color:#475569; }
.cv-s30 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cv-s31 {
    width: auto;
    height: 36px;
    font-size: 12px;
}
.cv-s32 { font-size:12px; color:#475569; display:inline-flex; align-items:center; gap:4px; }
.cv-s33 { width:auto; height:30px; font-size:12px; padding:2px 6px; }
.cv-card-wrap { border:1px solid #cbd5e1; border-radius:6px; background:#ffffff; padding:20px; }
.cv-table-full { width:100%; border-collapse:collapse; font-size:13px; color:#334155; }
.cv-col-left { width:50%; vertical-align:top; padding-right:20px; border-top:none; }
.cv-form-row { display:flex; align-items:center; margin-bottom:12px; }
.cv-form-label-140 { width:140px; text-align:right; padding-right:12px; font-weight:600; color:#475569; }
.cv-form-label-160 { width:170px; min-width:170px; max-width:170px; flex-shrink:0; text-align:left; padding-right:12px; font-weight:500; font-size:13px; color:#334155; margin-bottom:0; display:inline-block; box-sizing:border-box; }
.cv-s34 { display:flex; align-items:flex-start; margin-bottom:12px; }
.cv-s35 { width:140px; text-align:right; padding-right:12px; font-weight:600; color:#475569; margin-top:4px; }
.cv-s36 { flex:1; font-size:12px; }
.cv-s37 { display:block; margin-bottom:4px; }
.cv-s38 { font-size:11px; color:#6366f1; text-decoration:none; }
.cv-col-right { width:50%; vertical-align:top; padding-left:20px; border-top:none; }
.cv-s39 { display:flex; gap:6px; flex:1; }
.cv-s40 { width:110px; }
.cv-s41 { border-top:1px solid #e2e8f0; padding-top:16px; margin-top:16px; }
.cv-s42 { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; font-size:12px; color:#475569; }
.cv-s43 { display:flex; align-items:center; gap:8px; cursor:pointer; }
.cv-s44 { display:flex; align-items:center; gap:8px; cursor:pointer; margin-top:8px; }
.cv-s45 { font-weight:600; color:#475569; display:block; margin-bottom:6px; }
.cv-s46 { width:100%; font-size:12px; }
.cv-s47 { text-align:center; margin-top:20px; display:flex; justify-content:center; gap:10px; }
.cv-s48 { background:#0f766e; border-color:#0f766e; padding:8px 24px; font-weight:600; }
.cv-s49 { padding:8px 20px; }
.cv-s50 { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; font-size:12px; color:#475569; }
.cv-flex-gap-6 { display:flex; align-items:center; gap:6px; }
.cv-s51 { font-size:11px; padding:2px 6px; width:auto; }
.cv-s52 { font-size:11px; padding:2px 8px; }
.cv-s53 { margin-bottom:16px; overflow:hidden; border:1px solid #cbd5e1; }
.cv-s54 { width:100%; margin-bottom:0; border-collapse:collapse; }
.cv-s55 { background:#0f766e !important; color:#ffffff !important; }
.cv-s56 { background:#0f766e !important; color:#ffffff !important; font-size:12px; }
.cv-s57 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:150px; font-weight:700; }
.cv-s58 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; font-weight:700; }
.cv-s59 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:180px; font-weight:700; }
.cv-s60 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:80px; text-align:right; font-weight:700; }
.cv-s61 { text-align:center; padding:20px; color:#94a3b8; }
.cv-s62 { border-bottom:1px solid #e2e8f0; font-size:12px; }
.cv-s63 { padding:10px 12px; color:#475569; white-space:nowrap; vertical-align:top; }
.cv-s64 { padding:10px 12px; color:#1e293b; vertical-align:top; line-height:1.5; }
.cv-s65 { background:#ef4444; color:#fff; font-size:9px; padding:2px 5px; border-radius:3px; margin-right:6px; }
.cv-s66 { white-space:pre-wrap; }
.cv-s67 { padding:10px 12px; color:#475569; vertical-align:top; }
.cv-s68 { padding:10px 12px; text-align:right; vertical-align:top; white-space:nowrap; }
.cv-s69 { font-size:11px; padding:2px 6px; }
.cv-s70 { font-size:11px; padding:2px 6px; color:#dc2626; }
.cv-s71 { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.cv-s72 { border:1px solid #cbd5e1; border-radius:6px; background:#ffffff; padding:16px; }
.cv-s73 { display:flex; gap:16px; flex-wrap:wrap; }
.cv-s74 { flex:1; min-width:300px; }
.cv-s75 { border:1px solid #cbd5e1; border-bottom:none; border-radius:4px 4px 0 0; background:#f8fafc; padding:6px 10px; display:flex; gap:4px; flex-wrap:wrap; }
.cv-s76 { border-radius:0 0 4px 4px; font-size:13px; width:100%; }
.cv-s77 { width:180px; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; }
.cv-s78 { background:#0f766e; border-color:#0f766e; padding:10px 16px; font-weight:600; width:100%; }
.cv-s79 { font-size:12px; color:#475569; cursor:pointer; user-select:none; display:flex; align-items:center; gap:6px; }
.cv-s80 { accent-color:#0f766e; width:15px; height:15px; }
.cv-s81 { display:flex; justify-content:flex-end; margin-bottom:16px; }
.cv-s82 { background:#0f766e; border-color:#0f766e; font-weight:600; padding:8px 16px; }
.cv-s83 { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin-bottom:20px; }
.cv-stat-box { background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:16px; box-shadow:0 1px 2px rgba(0,0,0,0.03); }
.cv-stat-num { font-size:24px; font-weight:700; color:#1e293b; }
.cv-stat-label { font-size:11px; font-weight:600; color:#64748b; letter-spacing:0.5px; margin-top:4px; }
.cv-s84 { font-size:12px; padding:4px 8px; width:180px; }
.cv-s85 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:30px; text-align:center; }
.cv-s86 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:130px; font-weight:700; }
.cv-s87 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:200px; font-weight:700; }
.cv-s88 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:140px; font-weight:700; }
.cv-s89 { background:#0f766e !important; color:#ffffff !important; padding:10px 12px; width:130px; text-align:right; font-weight:700; }
.cv-s90 { padding:10px 12px; text-align:center; }
.cv-s91 { padding:10px 12px; color:#475569; white-space:nowrap; }
.cv-s92 { color:#d97706; margin-right:4px; }
.cv-s93 { padding:10px 12px; color:#475569; }
.cv-s94 { padding:10px 12px; }
.cv-s95 { font-weight:600; color:#0f766e; text-decoration:none; }
.cv-s96 { padding:10px 12px; text-align:right; color:#475569; white-space:nowrap; }
.cv-s97 { display:flex; justify-content:space-between; align-items:center; margin-top:12px; flex-wrap:wrap; gap:12px; }
.cv-s98 { font-size:11px; padding:3px 10px; }
.cv-s99 { background:#dc2626; border-color:#dc2626; font-size:11px; padding:3px 10px; }
.cv-s100 { display:flex; align-items:center; gap:16px; font-size:12px; color:#475569; }
.cv-s101 { font-size:11px; padding:2px 6px; width:auto; display:inline-block; }
.cv-s102 { display:flex; align-items:center; gap:4px; }
.cv-s103 { background:#0f766e; color:#fff; font-size:11px; font-weight:700; padding:3px 8px; border-radius:4px; }
.cv-s104 { margin-bottom:20px; border:1px solid #e2e8f0; background:#ffffff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.cv-s105 { background:#f8fafc; padding:12px 18px; border-bottom:1px solid #e2e8f0; font-weight:700; font-size:14px; color:#1e293b; display:flex; align-items:center; gap:8px; }
.cv-s106 { padding:16px 20px; }
.cv-s107 { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:16px; font-size:13px; }
.cv-meta-title { color:#64748b; font-size:11px; text-transform:uppercase; font-weight:700; letter-spacing:0.5px; display:block; margin-bottom:3px; }
.cv-s108 { color:#0f172a; font-size:14px; }
.cv-s109 { background:#e0f2fe; color:#0369a1; font-weight:700; font-size:12px; padding:3px 10px; border-radius:4px; display:inline-block; }
.cv-s110 { color:#334155; font-size:13px; }
.cv-s111 { color:#334155; font-weight:600; }
.cv-s112 { color:#0f766e; font-size:11px; margin-right:4px; }
.cv-s113 { border:1px solid #e2e8f0; background:#ffffff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,0.03); position:relative; }
.cv-s114 { display:flex; justify-content:space-between; align-items:center; padding:14px 20px; background:#f8fafc; border-bottom:1px solid #e2e8f0; border-top-left-radius:8px; border-top-right-radius:8px; flex-wrap:wrap; gap:10px; }
.cv-s115 { margin:0; font-size:15px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:8px; }
.cv-s116 { margin:2px 0 0; font-size:12px; color:#64748b; }
.cv-s117 { background:#0f766e; border-color:#0f766e; font-weight:600; font-size:12px; padding:7px 14px; border-radius:6px; cursor:pointer; }
.cv-s118 { min-height:220px; position:relative; }
.cv-s119 { font-size:12px; background:#0f766e !important; color:#ffffff !important; }
.cv-s120 { background:#0f766e !important; color:#ffffff !important; padding:12px 18px; font-weight:700; }
.cv-s121 { background:#0f766e !important; color:#ffffff !important; padding:12px 18px; font-weight:700; width:220px; }
.cv-s122 { background:#0f766e !important; color:#ffffff !important; padding:12px 18px; font-weight:700; width:240px; text-align:right; }
.cv-s123 { text-align:center; padding:32px; color:#94a3b8; font-size:13px; }
.cv-s124 { font-size:24px; display:block; margin-bottom:8px; color:#cbd5e1; }
.cv-s125 { border-bottom:1px solid #f1f5f9; }
.cv-s126 { padding:14px 18px; vertical-align:middle; }
.cv-s127 { display:flex; align-items:center; gap:12px; }
.cv-s128 { width:36px; height:36px; border-radius:50%; background:#e0f2fe; color:#0369a1; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.cv-s129 { background:#0f766e; color:#ffffff; font-size:10px; font-weight:700; padding:2px 8px; border-radius:12px; }
.cv-s130 { font-size:9px; margin-right:2px; }
.cv-s131 { background:#f1f5f9; color:#475569; font-size:10px; font-weight:600; padding:2px 8px; border-radius:12px; border:1px solid #cbd5e1; }
.cv-s132 { font-size:12px; color:#64748b; margin-top:2px; }
.cv-s133 { color:#0284c7; text-decoration:none; font-weight:500; }
.cv-s134 { padding:14px 18px; vertical-align:middle; font-size:13px; color:#475569; }
.cv-s135 { font-weight:600; color:#1e293b; }
.cv-s136 { color:#94a3b8; font-style:italic; }
.cv-s137 { padding:14px 18px; vertical-align:middle; text-align:right; }
.cv-s138 { display:inline-flex; align-items:center; gap:8px; }
.cv-s139 { position:relative; display:inline-block; }
.cv-s140 { font-size:12px; padding:5px 12px; border-radius:6px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.cv-s141 { display:none; position:absolute; right:0; top:calc(100% + 4px); background:#ffffff; border:1px solid #cbd5e1; border-radius:8px; box-shadow:0 10px 30px rgba(0,0,0,0.18); width:230px; z-index:99999; text-align:left; overflow:hidden; }
.cv-s142 { width:100%; border:none; background:none; text-align:left; padding:10px 14px; font-size:12px; color:#334155; cursor:pointer; display:flex; align-items:center; gap:8px; }
.cv-s143 { color:#0284c7; width:16px; }
.cv-s144 { width:100%; border:none; background:none; text-align:left; padding:10px 14px; font-size:12px; color:#334155; cursor:pointer; display:flex; align-items:center; gap:8px; border-top:1px solid #f1f5f9; }
.cv-s145 { color:#d97706; width:16px; }
.cv-s146 { color:#eab308; width:16px; }
.cv-s147 { text-decoration:none; padding:10px 14px; font-size:12px; color:#334155; display:flex; align-items:center; gap:8px; border-top:1px solid #f1f5f9; }
.cv-s148 { color:#6366f1; width:16px; }
.cv-s149 { display:inline; margin:0; }
.cv-s150 { color:#dc2626; border-color:#fecaca; background:#fff5f5; font-size:12px; padding:5px 12px; border-radius:6px; cursor:pointer; }
.cv-s151 { margin-bottom:20px; border:1px solid #e2e8f0; background:#ffffff; border-radius:8px; padding:16px 20px; box-shadow:0 1px 3px rgba(0,0,0,0.03); }
.cv-s152 { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.cv-s153 { font-weight:700; font-size:13px; color:#1e293b; margin:0; display:flex; align-items:center; gap:6px; }
.cv-s154 { flex:1; max-width:420px; }
.cv-s155 { font-size:13px; height:38px; font-weight:600; color:#0f172a; }
.cv-s156 { font-size:12px; padding:6px 14px; }
.cv-s157 { border:1px solid #e2e8f0; background:#ffffff; border-radius:8px; box-shadow:0 1px 3px rgba(0,0,0,0.03); overflow:hidden; margin-bottom:20px; }
.cv-s158 { background:#f8fafc; padding:14px 20px; border-bottom:1px solid #e2e8f0; display:flex; justify-content:space-between; align-items:center; }
.cv-s159 { background:#e0f2fe; color:#0369a1; font-size:11px; font-weight:700; padding:4px 10px; border-radius:4px; }
.cv-s160 { padding:24px; }
.cv-s161 { display:grid; grid-template-columns:1fr 1fr; gap:30px; }
.cv-s162 { font-size:13px; font-weight:700; color:#0f766e; text-transform:uppercase; letter-spacing:0.5px; margin-top:0; margin-bottom:14px; border-bottom:2px solid #ccfbf1; padding-bottom:6px; }
.cv-label-block { font-weight:600; font-size:12px; color:#334155; display:block; margin-bottom:4px; }
.cv-s163 { display:grid; grid-template-columns:140px 1fr; gap:8px; }
.cv-input-h38 { font-size:12px; height:38px; }
.cv-s164 { margin-top:24px; border-top:1px solid #e2e8f0; padding-top:20px; }
.cv-s165 { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cv-s166 { font-size:13px; font-weight:700; color:#0f766e; text-transform:uppercase; letter-spacing:0.5px; margin:0; }
.cv-s167 { font-size:11px; padding:3px 10px; cursor:pointer; }
.cv-s168 { font-size:12px; color:#64748b; margin-bottom:14px; }
.cv-s169 { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:12px; }
.cv-s170 { display:flex; align-items:flex-start; gap:10px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:6px; padding:10px 14px; cursor:pointer; }
.cv-s171 { margin-top:3px; accent-color:#0f766e; width:16px; height:16px; }
.cv-s172 { font-size:13px; color:#1e293b; display:block; }
.cv-s173 { font-size:11px; color:#64748b; }
.cv-s174 { background:#f8fafc; padding:14px 24px; border-top:1px solid #e2e8f0; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.cv-s175 { color:#dc2626; border-color:#fecaca; background:#fff5f5; font-size:12px; padding:7px 14px; cursor:pointer; }
.cv-s176 { display:flex; gap:10px; }
.cv-s177 { font-size:12px; padding:7px 16px; }
.cv-s178 { background:#0f766e; border-color:#0f766e; font-weight:600; font-size:12px; padding:7px 20px; cursor:pointer; }
.cv-s179 { margin-top:8px; margin-bottom:14px; font-size:16px; font-weight:600; color:#1e293b; }
.cv-s180 { background:#ffffff; border:1px solid #cbd5e1; border-radius:2px; padding:16px 20px 24px; margin-bottom:20px; box-shadow:0 1px 2px rgba(0,0,0,0.02); }
.cv-s181 { width:100%; border-collapse:collapse; font-size:13px; color:#334155; margin-bottom:14px; }
.cv-s182 { width:50%; vertical-align:top; padding-right:20px; border-top:none; padding-top:0; }
.cv-form-field-group { position:relative; display:flex; align-items:center; flex:1; }
.cv-form-field-group input.form-control { width:100%; }
.cv-form-field-group:has(.cv-muted-icon) input.form-control,
.cv-form-field-group:has(.fa-calendar) input.form-control,
.cv-form-field-group:has(.fa-calendar-days) input.form-control { padding-right:34px !important; }
.cv-muted-icon { position:absolute; right:10px; top:50%; transform:translateY(-50%); color:#94a3b8; font-size:13.5px; cursor:pointer; z-index:3; pointer-events:auto; transition:color 0.15s ease; }
.cv-muted-icon:hover { color:#0284c7; }
.cv-s183 { width:50%; vertical-align:top; padding-left:20px; border-top:none; padding-top:0; }
.cv-s184 { font-size:11px; color:#64748b; white-space:nowrap; font-weight:500; }
.cv-s185 { font-size:11px; padding:4px 10px; background:#0284c7; border:1px solid #0284c7; color:#ffffff; border-radius:4px; font-weight:700; cursor:pointer; }
.cv-s186 { display:flex; align-items:center; flex:1; }
.cv-s187 { width:15px; height:15px; margin:0; }
.cv-s188 { display:flex; align-items:flex-start; margin-bottom:14px; }
.cv-s189 { width:160px; text-align:right; padding-right:14px; font-weight:600; color:#475569; margin-top:6px; }
.cv-s190 { text-align:center; margin-top:16px; }
.cv-s191 { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:#334155; font-weight:500; cursor:pointer; }
.cv-s192 { accent-color:#0f766e; width:14px; height:14px; margin:0; }
.cv-s193 { text-align:center; margin-top:12px; display:flex; justify-content:center; gap:8px; }
.cv-s194 { background:#337ab7; border:1px solid #2e6da4; color:#ffffff; font-size:12px; font-weight:600; padding:6px 20px; border-radius:4px; cursor:pointer; }
.cv-s195 { background:#ffffff; border:1px solid #cccccc; color:#333333; font-size:12px; font-weight:500; padding:6px 16px; border-radius:4px; text-decoration:none; display:inline-block; }
.cv-s196 { display:flex; justify-content:space-between; align-items:center; margin-top:4px; margin-bottom:10px; flex-wrap:wrap; gap:10px; }
.cv-s197 { display:flex; align-items:center; gap:6px; flex:1; max-width:550px; }
.cv-s198 { background:#fffde7; border:1px solid #cbd5e1; height:30px; font-size:12px; color:#1e293b; font-weight:500; border-radius:3px; flex:1; padding:2px 8px; }
.cv-s199 { background:#ffffff; border:1px solid #cbd5e1; color:#334155; height:30px; padding:0 14px; font-size:12px; border-radius:3px; font-weight:500; cursor:pointer; }
.cv-s200 { background:#ffffff; border:1px solid #cbd5e1; color:#334155; height:30px; padding:0 12px; font-size:12px; border-radius:3px; display:inline-flex; align-items:center; gap:4px; cursor:pointer; font-weight:500; text-decoration:none; }
.cv-s201 { background:#ffffff; border:1px solid #cbd5e1; color:#334155; height:30px; padding:0 12px; font-size:12px; border-radius:3px; display:inline-flex; align-items:center; gap:4px; cursor:pointer; font-weight:500; }
.cv-s202 { display:none; position:absolute; right:0; top:calc(100% + 2px); background:#ffffff; border:1px solid #cbd5e1; border-radius:3px; box-shadow:0 4px 14px rgba(0,0,0,0.12); width:200px; z-index:99999; text-align:left; overflow:hidden; padding:4px 0; }
.cv-s203 { display:flex; align-items:center; gap:10px; padding:6px 14px; font-size:12px; color:#334155; text-decoration:none; }
.cv-s204 { width:16px; color:#475569; font-size:13px; }
.cv-s205 { border-top:1px solid #e2e8f0; margin:4px 0; }
.cv-s206 { width:100%; border:none; background:none; text-align:left; display:flex; align-items:center; gap:10px; padding:6px 14px; font-size:12px; color:#334155; cursor:pointer; }
.cv-s207 { width:16px; color:#334155; font-size:13px; }
.cv-s208 { width:100%; border:none; background:none; text-align:left; display:flex; align-items:center; gap:10px; padding:6px 14px; font-size:12px; color:#dc2626; cursor:pointer; }
.cv-s209 { width:16px; color:#dc2626; font-size:13px; }
.cv-s210 { border:1px solid #cbd5e1; border-radius:6px; background:#ffffff; padding:20px; margin-bottom:20px; }
.cv-s211 { color:#0284c7; text-decoration:none; font-weight:600; }
.cv-s212 { background:#06b6d4; color:#ffffff; font-size:10px; font-weight:700; padding:2px 6px; border-radius:3px; letter-spacing:0.3px; text-transform:uppercase; }
.cv-s213 { color:#b91c1c; font-size:11px; margin-top:3px; font-weight:500; }
.cv-s214 { font-size:11px; padding:4px 10px; background:#f8fafc; border:1px solid #cbd5e1; color:#475569; border-radius:4px; font-weight:600; cursor:pointer; }
.cv-s215 { width:160px; text-align:right; padding-right:14px; font-weight:600; color:#475569; margin:0; display:flex; align-items:center; justify-content:flex-end; gap:4px; }
.cv-s216 { color:#0284c7; font-size:11px; }
.cv-s217 { width:100%; border-collapse:collapse; border:1px solid #cbd5e1; font-size:12px; border-radius:4px; overflow:hidden; }
.cv-s218 { background:#174375; color:#ffffff; }
.cv-s219 { padding:8px 10px; text-align:center; font-weight:600; border-right:1px solid #205493; width:15%; }
.cv-s220 { padding:8px 10px; text-align:center; font-weight:600; border-right:1px solid #205493; width:25%; }
.cv-s221 { padding:8px 10px; text-align:center; font-weight:600; border-right:1px solid #205493; width:20%; }
.cv-s222 { padding:8px 6px; text-align:center; font-weight:600; width:5%; }
.cv-s223 { text-align:center; padding:12px; color:#64748b; background:#ffffff; }
.cv-s224 { background:#ffffff; border-top:1px solid #e2e8f0; text-align:center; }
.cv-td-bordered { padding:8px 10px; border-right:1px solid #f1f5f9; }
.cv-s225 { padding:8px 10px; border-right:1px solid #f1f5f9; font-weight:600; text-align:left; }
.cv-s226 { background:#dcfce7; color:#15803d; padding:3px 8px; font-size:11px; border-radius:3px; font-weight:600; }
.cv-s227 { padding:8px 6px; }
.cv-s228 { background:none; border:none; color:#dc2626; cursor:pointer; font-size:12px; }
.cv-s229 { display:flex; flex-direction:column; gap:4px; }
.cv-s230 { margin:0; width:15px; height:15px; }
.cv-s231 { color:#475569; font-size:13px; font-weight:500; }
.cv-s232 { max-width:140px; }
.cv-s233 { color:#475569; font-size:13px; font-weight:500; white-space:nowrap; }
.cv-s234 { background:#0284c7; border-color:#0284c7; font-weight:600; font-size:13px; padding:8px 24px; border-radius:4px; cursor:pointer; }
.cv-s235 { background:#ffffff; border:1px solid #cbd5e1; color:#334155; font-size:13px; font-weight:500; padding:8px 18px; border-radius:4px; text-decoration:none; display:inline-block; }
.cv-s236 { display:flex; justify-content:flex-end; align-items:center; gap:8px; margin-bottom:12px; }
.cv-s237 { background:#ffffff; border:1px solid #cccccc; color:#333333; font-size:12px; font-weight:500; padding:5px 12px; border-radius:4px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.cv-s238 { background:#0284c7; border:1px solid #0284c7; color:#ffffff; font-size:12px; font-weight:600; padding:5px 14px; border-radius:4px; display:inline-flex; align-items:center; gap:6px; cursor:pointer; }
.cv-s239 { width:100%; border-collapse:collapse; font-size:13px; color:#334155; margin-bottom:0; }
.cv-s240 { font-size:12px; color:#64748b; font-weight:500; }
.cv-s241 { text-align:center; margin-top:16px; display:flex; justify-content:center; gap:10px; }
.cv-s242 { background:#0284c7; border-color:#0284c7; font-weight:600; font-size:13px; padding:6px 20px; border-radius:4px; cursor:pointer; }
.cv-s243 { background:#ffffff; border:1px solid #cbd5e1; color:#334155; font-size:13px; font-weight:500; padding:6px 16px; border-radius:4px; text-decoration:none; }
.cv-s244 { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; font-size:12px; color:#475569; }
.cv-s245 { font-size:11px; height:24px; padding:1px 6px; width:60px; display:inline-block; }
.cv-s246 { font-size:11px; padding:1px 8px; height:24px; background:#ffffff; border:1px solid #cccccc; color:#333333; border-radius:3px; cursor:pointer; }
.cv-s247 { border:1px solid #cbd5e1; border-radius:4px; overflow:hidden; background:#ffffff; box-shadow:none; margin-bottom:12px; }
.cv-s248 { margin-bottom:0; font-size:12px; border-collapse:collapse; width:100%; }
.cv-s249 { width:30px; padding:8px 10px; text-align:center; border:none; }
.cv-s250 { width:14px; height:14px; cursor:pointer; margin:0; }
.cv-btn-submit { padding:8px 12px; border:none; color:#ffffff; font-weight:600; }
.cv-s251 { color:#ffffff; text-decoration:none; }
.cv-s252 { padding:8px 12px; border:none; color:#ffffff; font-weight:600; text-align:right; }
.cv-s253 { text-align:center; padding:24px; color:#64748b; font-style:italic; }
.cv-s254 { border-bottom:1px solid #f1f5f9; background:#ffffff; }
.cv-s255 { text-align:center; padding:8px 10px; vertical-align:middle; }
.cv-s256 { padding:8px 12px; vertical-align:middle; font-weight:600; }
.cv-s257 { padding:8px 12px; vertical-align:middle; color:#334155; }
.cv-s258 { padding:8px 12px; vertical-align:middle; color:#64748b; }
.cv-s259 { padding:8px 12px; vertical-align:middle; font-weight:600; color:#1e293b; }
.cv-s260 { padding:8px 12px; vertical-align:middle; }
.cv-s261 { color:<?= $stColor ?>; font-weight:600; font-size:12px; }
.cv-s262 { padding:8px 12px; vertical-align:middle; text-align:right; white-space:nowrap; }
.cv-s263 { font-size:11px; padding:4px 8px; background:#ffffff; border:1px solid #cbd5e1; color:#0284c7; border-radius:4px; cursor:pointer; margin-right:3px; text-decoration:none; display:inline-block; }
.cv-s264 { font-size:11px; padding:4px 8px; background:#ffffff; border:1px solid #cbd5e1; color:#0f766e; border-radius:4px; cursor:pointer; margin-right:3px; }
.cv-s265 { font-size:11px; padding:4px 8px; background:#fff5f5; border:1px solid #fecaca; color:#dc2626; border-radius:4px; cursor:pointer; }
.cv-s266 { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:16px; }
.cv-s267 { font-size:12px; color:#334155; font-weight:600; margin-right:4px; }
.cv-s268 { font-size:11px; padding:3px 10px; background:#5cb85c; border:1px solid #4cae4c; color:#ffffff; border-radius:3px; font-weight:600; cursor:pointer; }
.cv-s269 { font-size:11px; padding:3px 10px; background:#ffffff; border:1px solid #cccccc; color:#333333; border-radius:3px; cursor:pointer; }
.cv-s270 { font-size:11px; padding:3px 10px; background:#d9534f; border:1px solid #d43f3a; color:#ffffff; border-radius:3px; font-weight:600; cursor:pointer; }
.cv-s271 { display:flex; justify-content:space-between; align-items:center; margin-top:12px; font-size:12px; }
.cv-s272 { background:#ffffff; border:1px solid #cccccc; color:#333333; padding:4px 12px; border-radius:3px; text-decoration:none; }
.cv-s273 { background:#f1f5f9; border:1px solid #e2e8f0; color:#94a3b8; padding:4px 12px; border-radius:3px; cursor:not-allowed; }
.cv-s274 { width:480px; max-width:90%; padding:20px; }
.cv-s275 { margin-top:0; }
.cv-s276 { text-align:right; gap:8px; display:flex; justify-content:flex-end; }
.cv-s277 { width:720px; max-width:94%; overflow-x:hidden; }
.cv-s278 { background:#1e3a8a; color:#ffffff; padding:12px 20px; display:flex; justify-content:space-between; align-items:center; border-top-left-radius:6px; border-top-right-radius:6px; }
.cv-s279 { margin:0; font-size:15px; font-weight:600; color:#ffffff; }
.cv-s280 { background:none; border:none; font-size:18px; color:#cbd5e1; cursor:pointer; padding:0; line-height:1; }
.cv-s281 { padding:24px 28px; }
.cv-s282 { display:grid; grid-template-columns:130px 1fr; gap:16px; align-items:flex-start; margin-bottom:20px; }
.cv-s283 { font-weight:600; font-size:13px; color:#334155; text-align:right; padding-top:8px; }
.cv-s284 { width:100%; height:38px; font-size:13px; border:1px solid #cbd5e1; border-radius:4px; }
.cv-s285 { font-size:11px; color:#64748b; margin:4px 0 0; }
.cv-s286 { font-weight:600; font-size:13px; color:#334155; text-align:right; padding-top:4px; }
.cv-s287 { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; font-size:12px; color:#334155; }
.cv-checkbox-row { display:flex; align-items:center; gap:8px; cursor:pointer; margin-bottom:6px; }
.accent-blue { accent-color:#0284c7; }
.cv-s288 { text-align:right; margin-top:10px; }
.cv-s289 { font-size:12px; color:#0284c7; text-decoration:none; font-weight:600; }
.cv-s290 { display:grid; grid-template-columns:130px 1fr; gap:16px; align-items:center; margin-bottom:10px; }
.cv-s291 { font-weight:600; font-size:13px; color:#334155; text-align:right; }
.cv-s292 { display:flex; align-items:center; }
.cv-s293 { display:inline-flex; border:1px solid #cbd5e1; border-radius:4px; overflow:hidden; }
.cv-s294 { padding:4px 14px; font-size:12px; font-weight:700; background:#0284c7; color:#ffffff; border:none; cursor:pointer; }
.cv-s295 { padding:4px 14px; font-size:12px; font-weight:600; background:#ffffff; color:#64748b; border:none; cursor:pointer; }
.cv-s296 { background:#f8fafc; padding:12px 24px; border-top:1px solid #e2e8f0; display:flex; justify-content:flex-end; gap:8px; border-bottom-left-radius:6px; border-bottom-right-radius:6px; }
.cv-s297 { font-size:13px; padding:6px 16px; border-radius:4px; }
.cv-s298 { background:#0284c7; border-color:#0284c7; font-size:13px; font-weight:600; padding:6px 18px; border-radius:4px; }
.cv-s299 { width:440px; max-width:92%; padding:24px; }
.cv-modal-head-border { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; border-bottom:1px solid #e2e8f0; padding-bottom:12px; }
.cv-modal-head-title { margin:0; font-size:16px; font-weight:700; color:#0f172a; display:flex; align-items:center; gap:8px; }
.cv-s300 { background:none; border:none; font-size:20px; color:#94a3b8; cursor:pointer; }
.cv-s301 { font-size:13px; color:#475569; margin-bottom:14px; }
.cv-s302 { color:#0f172a; }
.cv-s303 { font-weight:600; font-size:12px; color:#334155; display:block; margin-bottom:6px; }
.cv-s304 { text-align:right; display:flex; justify-content:flex-end; gap:10px; }
.cv-btn-teal { background:#0f766e; border-color:#0f766e; font-weight:600; }
.cv-s305 { width:780px; max-width:95%; padding:20px 24px; border-radius:3px; }
.cv-s306 { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; border-bottom:1px solid #e2e8f0; padding-bottom:10px; }
.cv-s307 { margin:0; font-size:16px; font-weight:600; color:#1e293b; display:flex; align-items:center; gap:8px; }
.cv-s308 { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:10px; }
.cv-s309 { display:flex; flex-direction:column; gap:6px; border-right:1px solid #e5e7eb; padding-right:20px; }
.cv-grid-row-140 { display:grid; grid-template-columns:140px 1fr; align-items:center; font-size:12px; }
.cv-grid-label { text-align:right; padding-right:12px; color:#334155; margin:0; font-weight:500; }
.cv-s310 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; width:100%; color:#1e293b; }
.cv-s311 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:130px; color:#1e293b; }
.cv-s312 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:200px; color:#1e293b; }
.cv-s313 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:260px; color:#1e293b; }
.cv-s314 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:120px; color:#1e293b; }
.cv-s315 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:180px; color:#1e293b; }
.cv-s316 { display:flex; flex-direction:column; gap:6px; padding-left:4px; }
.cv-s317 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:90px; color:#1e293b; }
.cv-s318 { font-size:12px; height:28px; padding:2px 8px; border-radius:3px; border-color:#cbd5e1; max-width:100px; color:#1e293b; }
.cv-s319 { font-size:10px; color:#64748b; white-space:nowrap; }
.cv-s320 { font-size:10px; padding:0 8px; height:22px; background:#0284c7; border:1px solid #0284c7; color:#ffffff; border-radius:2px; font-weight:700; cursor:pointer; line-height:20px; }
.cv-s321 { width:14px; height:14px; margin:0; }
.cv-s322 { display:grid; grid-template-columns:140px 1fr; align-items:flex-start; font-size:12px; margin-top:4px; }
.cv-s323 { text-align:right; padding-right:12px; color:#334155; margin-top:4px; font-weight:500; }
.cv-s324 { font-size:12px; line-height:1.4; border-radius:3px; border-color:#cbd5e1; width:100%; color:#1e293b; }
.cv-s325 { text-align:center; margin-top:14px; }
.cv-s326 { background:#ffffff; border:1px solid #cccccc; color:#333333; font-size:12px; font-weight:500; padding:6px 16px; border-radius:4px; cursor:pointer; }
.cv-s327 { width:540px; max-width:92%; padding:24px; border-radius:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); background:#ffffff; }
.cv-s328 { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.cv-s329 { font-size:12px; color:#475569; margin-bottom:14px; }
.cv-s330 { margin-bottom:16px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:4px; padding:10px 14px; font-size:12px; color:#475569; }
.cv-s331 { display:flex; align-items:center; gap:8px; margin:0; cursor:pointer; }
.cv-s332 { accent-color:#0f766e; }
.cv-s333 { width:560px; max-width:92%; padding:24px; border-radius:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); background:#ffffff; }
.cv-s334 { background:#f8fafc; }
.cv-s335 { font-size:12px; line-height:1.4; }
.cv-s336 { width:440px; max-width:92%; padding:24px; border-radius:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); text-align:center; }
.cv-modal-alert-icon { width:54px; height:54px; border-radius:50%; background:#fee2e2; color:#dc2626; display:flex; align-items:center; justify-content:center; font-size:24px; margin:0 auto 16px; }
.cv-modal-title { margin:0 0 8px; font-size:17px; font-weight:700; color:#1e293b; }
.cv-modal-subtext { font-size:13px; color:#64748b; margin:0 0 20px; line-height:1.5; }
.cv-s337 { color:#1e293b; }
.cv-modal-btn-row { display:flex; justify-content:center; gap:12px; }
.cv-btn-cancel { padding:8px 20px; font-size:13px; border-radius:4px; font-weight:500; }
.cv-btn-danger-confirm { background:#dc2626; border-color:#dc2626; padding:8px 22px; font-size:13px; border-radius:4px; font-weight:600; color:#ffffff; cursor:pointer; }
.cv-s338 { width:450px; max-width:92%; padding:24px; border-radius:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); text-align:center; }
.cv-s339 { width:660px; max-width:94%; padding:20px 24px; border-radius:8px; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); }
.cv-s340 { color:#0284c7; }
.cv-grid-2col-mb { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.cv-s341 { font-size:10px; color:#64748b; }
.cv-input-h30 { font-size:12px; height:30px; }
.cv-s342 { border:1px solid #e2e8f0; border-radius:4px; padding:10px 12px; margin-bottom:12px; background:#f8fafc; }
.cv-s343 { display:grid; grid-template-columns:1fr 120px; gap:8px; }
.cv-s344 { background:#0284c7; border-color:#0284c7; font-weight:600; font-size:12px; padding:6px 18px; }
.cv-s345 { width:580px; max-width:94%; padding:20px 24px; border-radius:4px; }

/* Table Action Column & View/Edit Icon Button */
.cv-th-action {
    width: 65px;
    text-align: center;
}
.cv-btn-action {
    padding: 3px 8px;
    font-size: 11px;
    color: #475569;
    border-color: #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}
.cv-btn-action:hover {
    color: #0f766e;
    border-color: #0f766e;
    background: #f0fdf4;
    text-decoration: none;
}

/* Domain Management Tab Styles */
.cv-domain-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.cv-domain-select-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cv-domain-select {
    min-width: 280px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
}
.cv-domain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .cv-domain-grid {
        grid-template-columns: 1fr;
    }
}
.cv-domain-footer-row {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========================================================= */
/* WHMCS MANAGE ORDERS SCREEN STYLES (admin/orders/view.php)  */
/* ========================================================= */

.orders-manage-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 24px;
}
@media (max-width: 992px) {
    .orders-manage-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Cards */
.orders-nav-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.orders-nav-header {
    background: #0f766e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.orders-nav-body {
    padding: 0;
}
.orders-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.orders-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.15s ease;
}
.orders-nav-item:last-child {
    border-bottom: none;
}
.orders-nav-item:hover {
    background: #f8fafc;
    color: #0f766e;
    text-decoration: none;
}
.orders-nav-item.active {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
    border-left: 3px solid #0f766e;
}
.orders-nav-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 12px;
}
.orders-nav-badge.badge-amber {
    background: #fef3c7;
    color: #b45309;
}
.orders-nav-badge.badge-emerald {
    background: #d1fae5;
    color: #047857;
}
.orders-nav-badge.badge-rose {
    background: #ffe4e6;
    color: #be123c;
}

/* Sidebar Search Box */
.orders-search-box {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.orders-search-box label {
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}

/* Sidebar Staff Online */
.orders-staff-list {
    padding: 8px 14px;
    margin: 0;
    list-style: none;
}
.orders-staff-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
    color: #334155;
    border-bottom: 1px solid #f8fafc;
}
.orders-staff-item:last-child {
    border-bottom: none;
}
.orders-online-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Top Summary Metric Cards */
.orders-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
@media (max-width: 992px) {
    .orders-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .orders-stat-grid {
        grid-template-columns: 1fr;
    }
}
.orders-stat-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.orders-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.orders-stat-icon-emerald {
    background: #d1fae5;
    color: #059669;
}
.orders-stat-icon-amber {
    background: #fef3c7;
    color: #d97706;
}
.orders-stat-icon-indigo {
    background: #e0e7ff;
    color: #4f46e5;
}
.orders-stat-icon-purple {
    background: #f3e8ff;
    color: #7e22ce;
}
.orders-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.orders-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Main Content Cards */
.orders-info-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.orders-info-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.orders-info-body {
    padding: 16px 18px;
}

/* 2-Column Order Details Grid */
.orders-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 768px) {
    .orders-detail-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.orders-detail-col {
    display: flex;
    flex-direction: column;
}
.orders-detail-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12.5px;
}
.orders-detail-row:last-child {
    border-bottom: none;
}
.orders-detail-label {
    width: 140px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}
.orders-detail-val {
    color: #1e293b;
    flex: 1;
    word-break: break-word;
}
.orders-ip-actions {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
}
.orders-ip-btn {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
}
.orders-ip-btn:hover {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
    text-decoration: none;
}
.orders-ip-btn.btn-ban {
    color: #dc2626;
    border-color: #fca5a5;
}
.orders-ip-btn.btn-ban:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Order Items Table */
.orders-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.orders-items-table th {
    background: #0f766e;
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 14px;
    text-align: left;
    border: none;
}
.orders-items-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: middle;
}
.orders-items-table tr:hover td {
    background: #f8fafc;
}

/* Order Total Box */
.orders-total-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.orders-total-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}
.orders-total-summary {
    text-align: right;
}
.orders-total-due-row {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}
.orders-total-due-row span {
    color: #0f766e;
    font-size: 20px;
    margin-left: 8px;
}

/* Order Management Actions Bar */
.orders-action-bar {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-accept-order {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
    border-radius: 4px !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.2);
}
.btn-accept-order:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}
.btn-cancel-order {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.btn-cancel-order:hover {
    background: #d97706 !important;
    border-color: #d97706 !important;
}
.btn-refund-order {
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.btn-refund-order:hover {
    background: #c2410c !important;
    border-color: #c2410c !important;
}
.btn-fraud-order {
    background: #991b1b !important;
    border-color: #991b1b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.btn-fraud-order:hover {
    background: #7f1d1d !important;
    border-color: #7f1d1d !important;
}
.btn-pending-order {
    background: #64748b !important;
    border-color: #64748b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 9px 18px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.btn-pending-order:hover {
    background: #475569 !important;
    border-color: #475569 !important;
}
.btn-delete-order {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 9px 20px !important;
    border-radius: 4px !important;
    cursor: pointer;
}
.btn-delete-order:hover {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* Activity Timeline */
.orders-timeline {
    position: relative;
    padding-left: 24px;
}
.orders-timeline::before {
    content: '';
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 7px;
    width: 2px;
    background: #e2e8f0;
}
.orders-timeline-item {
    position: relative;
    margin-bottom: 16px;
}
.orders-timeline-item:last-child {
    margin-bottom: 0;
}
.orders-timeline-dot {
    position: absolute;
    left: -24px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0f766e;
}
.orders-timeline-dot.dot-emerald { border-color: #10b981; }
.orders-timeline-dot.dot-amber { border-color: #f59e0b; }
.orders-timeline-dot.dot-rose { border-color: #f43f5e; }
.orders-timeline-dot.dot-slate { border-color: #94a3b8; }
.orders-timeline-text {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.orders-timeline-meta {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 2px;
}

/* =========================================================
   ADMINISTRATOR ROLES MODULE STYLING
   ========================================================= */
.roles-page-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.roles-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.roles-page-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    max-width: 650px;
    line-height: 1.45;
}
.roles-hdr-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Role Summary Stat Cards */
.roles-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.roles-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.roles-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
}
.roles-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.roles-icon-teal { background: #ccfbf1; color: #0f766e; }
.roles-icon-indigo { background: #e0e7ff; color: #4338ca; }
.roles-icon-purple { background: #f3e8ff; color: #7e22ce; }
.roles-icon-emerald { background: #d1fae5; color: #059669; }
.roles-stat-val {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.roles-stat-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

/* Search and Filter Row */
.roles-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.roles-filter-search {
    position: relative;
    flex: 1;
    max-width: 320px;
}
.roles-filter-search input {
    width: 100%;
    height: 36px;
    padding: 6px 12px 6px 34px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.15s;
}
.roles-filter-search input:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15,118,110,0.12);
}
.roles-filter-search i {
    position: absolute;
    left: 11px;
    top: 11px;
    color: #94a3b8;
    font-size: 13px;
}
.roles-filter-opts {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Administrator Role Groups Table */
.roles-tbl-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.roles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.roles-table th {
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 11px 16px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}
.roles-table th:last-child {
    border-right: none;
}
.roles-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.roles-table tbody tr:hover {
    background: #f8fafc;
}
.roles-table tbody tr:last-child td {
    border-bottom: none;
}
.role-name-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.role-name-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.role-name-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}

/* Assigned Admin User Badges */
.role-users-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.role-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.role-user-pill:hover {
    background: #e2e8f0;
    color: #0f766e;
    border-color: #cbd5e1;
    text-decoration: none;
}
.role-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.role-user-empty {
    color: #94a3b8;
    font-size: 12.5px;
    font-style: italic;
}

/* Table Action Buttons */
.role-tbl-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}
.btn-role-act {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-role-act:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}
.btn-role-act.edit:hover {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}
.btn-role-act.duplicate:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}
.btn-role-act.delete:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}
.btn-role-act.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Stepped Form Card & Header */
.role-form-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}
.role-form-sec-hdr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.role-form-sec-body {
    padding: 20px;
}

/* Category-Based Permissions Grid */
.perm-categories-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.perm-cat-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    transition: border-color 0.15s;
}
.perm-cat-card:hover {
    border-color: #cbd5e1;
}
.perm-cat-hdr {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.perm-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.perm-cat-toggle {
    font-size: 12px;
    font-weight: 600;
    color: #0f766e;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.perm-cat-toggle:hover {
    text-decoration: underline;
}
.perm-cat-body {
    padding: 14px 18px;
}
.perm-matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}
.perm-chk-lbl {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    margin: 0;
    line-height: 1.35;
}
.perm-chk-lbl input[type="checkbox"] {
    accent-color: #0f766e;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}
.perm-sub-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.perm-sub-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

/* Administrator Assignment Multi-Grid */
.role-assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.role-assign-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}
.role-assign-card:hover {
    border-color: #0f766e;
    background: #f0fdfa;
}
.role-assign-card.selected {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 0 0 1px #0f766e;
}
.role-assign-card input[type="checkbox"] {
    accent-color: #0f766e;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.role-assign-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f766e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.role-assign-info {
    overflow: hidden;
}
.role-assign-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.role-assign-meta {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   SUPPORT TICKET DEPARTMENTS MODULE STYLING
   ========================================================= */
.dept-layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 4px;
}
@media (max-width: 992px) {
    .dept-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Suggested Sidebar Navigation Tree */
.dept-sidebar-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.dept-sidebar-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dept-sidebar-body {
    padding: 10px 0;
}
.dept-nav-group-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 16px 4px 16px;
}
.dept-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dept-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    font-size: 12.5px;
    color: #475569;
    text-decoration: none;
    transition: all 0.15s ease;
}
.dept-nav-link:hover {
    background: #f8fafc;
    color: #0f766e;
}
.dept-nav-link.active {
    background: #eaf5ee;
    color: #166534;
    font-weight: 700;
    border-left: 3px solid #22c55e;
}

/* Ticket Import Configuration Card */
.ticket-import-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.ticket-import-hdr {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ticket-import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}
.ticket-import-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 14px;
}
.ticket-import-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ticket-import-code-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}
.ticket-import-code {
    flex: 1;
    font-family: Consolas, Monaco, monospace;
    font-size: 11.5px;
    color: #0f766e;
    padding: 7px 10px;
    white-space: nowrap;
    overflow-x: auto;
    background: transparent;
    border: none;
    outline: none;
}
.btn-copy-code {
    background: #f1f5f9;
    border: none;
    border-left: 1px solid #cbd5e1;
    color: #475569;
    padding: 7px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-copy-code:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Action Strip & Filter */
.dept-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.dept-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dept-search-input {
    height: 34px;
    padding: 4px 10px 4px 30px;
    font-size: 12.5px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    width: 220px;
}
.dept-search-input:focus {
    border-color: #0f766e;
}

/* Departments List Table */
.dept-table-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.dept-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dept-table th {
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 14px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}
.dept-table th:last-child {
    border-right: none;
}
.dept-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.dept-table tbody tr:hover {
    background: #f8fafc;
}
.dept-table tbody tr:last-child td {
    border-bottom: none;
}

/* Reorder Move Up / Down Buttons */
.btn-move-order {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    margin-right: 3px;
}
.btn-move-order:hover {
    background: #f1f5f9;
    color: #0f766e;
    border-color: #0f766e;
}
.btn-move-order.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Department Badges */
.badge-visible {
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-visible::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}
.badge-hidden {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.badge-hidden::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

/* =========================================================
   WHMCS PRODUCTS & SERVICES MODULE STYLING
   ========================================================= */

/* Action Button Bar */
.whmcs-prod-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.whmcs-prod-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.whmcs-prod-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    text-decoration: none;
}
.whmcs-prod-btn.primary {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}
.whmcs-prod-btn.primary:hover {
    background: #115e59;
    border-color: #115e59;
    color: #ffffff;
}

/* Products Table */
.whmcs-prods-table-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.whmcs-prods-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.whmcs-prods-table thead tr {
    background: #1e3a8a; /* WHMCS dark blue header */
}
.whmcs-prods-table th {
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 12px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}
.whmcs-prods-table th:last-child {
    border-right: none;
}

/* Group Header Row */
.whmcs-prods-table tr.group-row {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    border-top: 2px solid #cbd5e1;
    border-bottom: 1px solid #cbd5e1;
}
.whmcs-prods-table tr.group-row td {
    padding: 8px 12px;
    font-size: 13px;
}
.whmcs-group-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}
.whmcs-group-title a {
    color: #0f172a;
    text-decoration: none;
}
.whmcs-group-title a:hover {
    color: #0f766e;
}
.whmcs-group-badge-hidden {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Product Item Row */
.whmcs-prods-table tr.product-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}
.whmcs-prods-table tr.product-row:hover {
    background: #f8fafc;
}
.whmcs-prods-table tr.product-row td {
    padding: 8px 12px;
    vertical-align: middle;
    color: #334155;
}
.whmcs-prod-name-cell {
    padding-left: 28px !important;
    font-weight: 600;
    color: #0f172a;
}
.whmcs-prod-name-cell a {
    color: #0f172a;
    text-decoration: none;
}
.whmcs-prod-name-cell a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Row Action Icons */
.whmcs-row-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}
.whmcs-icon-btn {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #64748b;
    border-radius: 3px;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.whmcs-icon-btn:hover {
    color: #0f766e;
    background: #e2e8f0;
}
.whmcs-icon-btn.delete:hover {
    color: #dc2626;
    background: #fee2e2;
}

/* =========================================================
   ORDER FORM TEMPLATE SELECTOR (SCREENSHOT 3)
   ========================================================= */
.order-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.order-template-card {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 10px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.order-template-card:hover {
    border-color: #0f766e;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
    transform: translateY(-2px);
}
.order-template-card.selected {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.25);
    background: #f0fdfa;
}
.order-template-preview {
    width: 100%;
    height: 100px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}
.order-template-preview svg {
    width: 100%;
    height: 100%;
}
.order-template-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =========================================================
   PRODUCT TYPE TILES (SCREENSHOT 4)
   ========================================================= */
.prod-type-tiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .prod-type-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.prod-type-tile {
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    padding: 16px 12px;
    text-align: center;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.prod-type-tile:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.prod-type-tile.selected {
    border: 2px solid #0284c7 !important;
    background-color: #f0f9ff !important;
    box-shadow: none;
}
.prod-type-tile i {
    font-size: 28px;
    color: #334155;
}
.prod-type-tile.selected i {
    color: #1e293b;
}
.prod-type-tile span {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

/* =========================================================
   WHMCS EDIT PRODUCT TABBED INTERFACE STYLING
   ========================================================= */
.whmcs-edit-tabs-wrap {
    display: flex;
    gap: 3px;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}
.whmcs-edit-tab {
    padding: 6px 13px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
    transition: all 0.12s ease;
    line-height: 1.4;
    outline: none;
}
.whmcs-edit-tab:hover {
    background: #f1f5f9;
    color: #0f766e;
}
.whmcs-edit-tab.active {
    background: #ffffff;
    color: #0f766e;
    font-weight: 700;
    border: 1px solid #0f766e;
    border-bottom: 1px solid #ffffff;
}
.whmcs-edit-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0 4px 4px 4px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.whmcs-edit-table {
    width: 100%;
    border-collapse: collapse;
}
.whmcs-edit-table tr {
    border-bottom: 1px solid #f1f5f9;
}
.whmcs-edit-table tr:last-child {
    border-bottom: none;
}
.whmcs-edit-table td.whmcs-label-td {
    width: 180px;
    text-align: right;
    vertical-align: top;
    padding: 11px 16px 11px 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
}
.whmcs-edit-table td.whmcs-input-td {
    padding: 10px 0;
    font-size: 12.5px;
    color: #334155;
    vertical-align: top;
}
.whmcs-field-hint {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.4;
}

/* =========================================================
   STANDARD CART ORDER FORM TEMPLATE STYLING (order.php)
   ========================================================= */
.cart-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cart-header-section {
    text-align: center;
    margin-bottom: 36px;
}
.cart-header-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
}
.cart-header-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}
.cart-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .cart-main-grid {
        grid-template-columns: 1fr;
    }
}
.cart-products-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cart-product-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 22px 24px;
    transition: all 0.2s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}
.cart-product-card:hover {
    border-color: #0f766e;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}
.cart-product-card.selected {
    border-color: #0f766e;
    background: #fbfdfd;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.cart-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}
.cart-product-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px 0;
}
.cart-product-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.cart-price-amount {
    font-size: 26px;
    font-weight: 800;
    color: #0f766e;
}
.cart-price-cycle {
    font-size: 12.5px;
    font-weight: 600;
    color: #64748b;
}

/* Order Summary Box */
.cart-summary-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    position: sticky;
    top: 20px;
}
.cart-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #475569;
    margin-bottom: 10px;
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    padding-top: 14px;
    border-top: 2px solid #0f172a;
    margin-top: 16px;
    margin-bottom: 20px;
}
.btn-complete-order {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: #16a34a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-complete-order:hover {
    background: #15803d;
}

/* =========================================================
   WHMCS PRODUCT ADDONS MODULE STYLING
   ========================================================= */
.whmcs-addons-table-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.whmcs-addons-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.whmcs-addons-table thead tr {
    background: #1e3a8a; /* WHMCS dark blue header */
}
.whmcs-addons-table th {
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 12px;
    text-align: left;
    border-right: 1px solid rgba(255,255,255,0.12);
    white-space: nowrap;
}
.whmcs-addons-table th:last-child {
    border-right: none;
}
.whmcs-addons-table tr.addon-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}
.whmcs-addons-table tr.addon-row:hover {
    background: #f8fafc;
}
.whmcs-addons-table tr.addon-row td {
    padding: 9px 12px;
    vertical-align: middle;
    color: #334155;
}
.whmcs-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
}
.whmcs-cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #ffffff;
    font-size: 10px;
}

/* =========================================================
   CLIENT PROFILE — TRANSACTIONS, BILLABLE, LOG & CREDIT MODULES
   ========================================================= */

/* Billable Items */
.cv-billable-badge {
    font-size: 11.5px;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    white-space: nowrap;
}
.cv-billable-due-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
}
.cv-billable-invoiced-text {
    font-size: 10.5px;
    color: #0284c7;
    margin-top: 1px;
}
.cv-billable-actions-wrap {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
.cv-billable-btn-action {
    padding: 3px 7px;
    font-size: 11px;
}
.cv-billable-btn-delete {
    padding: 3px 7px;
    font-size: 11px;
    color: #ef4444;
}
.cv-billable-toolbar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #334155;
}
.cv-billable-toolbar-title {
    font-weight: 600;
}
.cv-billable-toolbar-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #334155;
    cursor: pointer;
}
.cv-billable-toolbar-btn-danger {
    padding: 4px 12px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    color: #ef4444;
    cursor: pointer;
}

/* Transactions Tab Summary Cards */
.cv-tx-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.cv-tx-summary-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 16px 20px;
    text-align: left;
}
.cv-tx-summary-num {
    font-size: 26px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.cv-tx-summary-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-top: 4px;
    letter-spacing: 0.05em;
}
.cv-tx-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-size: 13px;
    color: #475569;
}
.cv-tx-page-select {
    min-width: 50px;
    height: 26px;
    padding: 2px 6px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background-color: #ffffff;
    background-image: none !important;
    color: #334155;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
    vertical-align: middle;
}
.cv-tx-page-btn {
    padding: 3px 10px;
    font-size: 12px;
    height: 26px;
    line-height: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.cv-tx-page-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}
.cv-tx-table-wrap {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    overflow-x: auto;
}
.cv-tx-table {
    width: 100%;
    border-collapse: collapse;
}
.cv-tx-th-row {
    background: #1e3a5f;
    color: #ffffff;
}
.cv-tx-th {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    white-space: nowrap;
}
.cv-tx-th-action {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    width: 90px;
}
.cv-tx-td-date {
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
}
.cv-tx-td-method {
    padding: 10px 12px;
    font-size: 13px;
    color: #1e293b;
    font-weight: 500;
}
.cv-tx-td-desc {
    padding: 10px 12px;
    font-size: 13px;
    color: #334155;
}
.cv-tx-td-in {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #16a34a;
    white-space: nowrap;
}
.cv-tx-td-out {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    white-space: nowrap;
}
.cv-tx-td-fees {
    padding: 10px 12px;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}
.cv-tx-td-muted {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}
.cv-tx-pagination-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.cv-tx-page-link {
    padding: 5px 14px;
    font-size: 12px;
}

/* Log Tab */
.cv-log-toggle-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}
.cv-log-toggle-btn {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-bottom: 1px solid #ffffff;
    border-radius: 4px 4px 0 0;
    color: #334155;
    margin-bottom: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.02);
}
.cv-log-filter-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0 4px 4px 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.cv-log-filter-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 14px 20px;
}
.cv-log-filter-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cv-log-filter-row {
    display: flex;
    align-items: center;
}
.cv-log-filter-label {
    width: 90px;
    text-align: right;
    margin-right: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0;
}
.cv-log-filter-input-wrap {
    position: relative;
    flex: 1;
    max-width: 220px;
}
.cv-log-filter-input {
    font-size: 13px;
    height: 32px;
    padding-right: 28px;
}
.cv-log-filter-icon {
    position: absolute;
    right: 9px;
    top: 8px;
    color: #94a3b8;
    pointer-events: none;
}
.cv-log-filter-select {
    font-size: 13px;
    height: 32px;
    flex: 1;
    max-width: 220px;
}
.cv-log-filter-desc {
    font-size: 13px;
    height: 32px;
    flex: 1;
}
.cv-log-filter-ip {
    font-size: 13px;
    height: 32px;
    flex: 1;
    max-width: 220px;
}
.cv-log-filter-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.cv-log-filter-btn {
    background: #0f766e;
    border-color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
}
.cv-log-filter-reset {
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 4px;
}
.cv-log-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #475569;
}
.cv-log-jump-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cv-log-jump-select {
    min-width: 50px;
    height: 26px;
    padding: 2px 6px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 3px;
    background-color: #ffffff;
    background-image: none !important;
    color: #334155;
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    cursor: pointer;
    vertical-align: middle;
}
.cv-log-jump-btn {
    padding: 3px 10px;
    font-size: 12px;
    height: 26px;
    line-height: 1;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.cv-log-jump-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
}
.cv-log-table-wrap {
    margin-top: 0;
    overflow-x: auto;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cv-log-table {
    width: 100%;
    border-collapse: collapse;
}
.cv-log-th-row {
    background: #0f3a6b;
    color: #ffffff;
}
.cv-log-th-date {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 14%;
    white-space: nowrap;
}
.cv-log-th-entry {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 56%;
}
.cv-log-th-user {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 16%;
}
.cv-log-th-ip {
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 14%;
}
.cv-log-td-date {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    vertical-align: top;
}
.cv-log-td-entry {
    padding: 10px 14px;
    font-size: 13px;
    color: #1e293b;
    vertical-align: top;
}
.cv-log-td-user {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    vertical-align: top;
}
.cv-log-user-title {
    font-weight: 500;
    color: #1e293b;
}
.cv-log-user-email {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 1px;
}
.cv-log-td-ip {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    vertical-align: top;
}
.cv-log-empty {
    text-align: left;
    padding: 14px 16px;
    color: #64748b;
    font-size: 13px;
    background: #ffffff;
}

/* Credit Management Modal */
.cv-credit-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15,23,42,0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.cv-credit-modal-card {
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}
.cv-credit-modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cv-credit-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.cv-credit-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.cv-credit-modal-body {
    padding: 16px 20px;
}
.cv-credit-desc-text {
    font-size: 12.5px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.4;
}
.cv-credit-balance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.cv-credit-balance-text {
    font-size: 13px;
    color: #334155;
}
.cv-credit-btn-group {
    display: flex;
    gap: 8px;
}
.cv-credit-btn-add {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
}
.cv-credit-btn-remove {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
}
.cv-credit-table-wrap {
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 18px;
}
.cv-credit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.cv-credit-th-row {
    background: #0f3a6b;
    color: #ffffff;
}
.cv-credit-th-date {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 22%;
    border-right: 1px solid #1e4a7b;
}
.cv-credit-th-desc {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 43%;
    border-right: 1px solid #1e4a7b;
}
.cv-credit-th-amount {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 17%;
    border-right: 1px solid #1e4a7b;
}
.cv-credit-th-admin {
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    width: 13%;
    border-right: 1px solid #1e4a7b;
}
.cv-credit-th-action {
    padding: 7px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    width: 5%;
}
.cv-credit-td-date {
    padding: 8px 10px;
    color: #334155;
    white-space: nowrap;
}
.cv-credit-td-desc {
    padding: 8px 10px;
    color: #1e293b;
}
.cv-credit-td-amount-pos {
    padding: 8px 10px;
    font-weight: 600;
    color: #16a34a;
}
.cv-credit-td-amount-neg {
    padding: 8px 10px;
    font-weight: 600;
    color: #dc2626;
}
.cv-credit-td-admin {
    padding: 8px 10px;
    color: #475569;
}
.cv-credit-td-action {
    padding: 8px 6px;
    text-align: center;
}
.cv-credit-delete-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 11px;
}
.cv-credit-close-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 18px;
    border-radius: 4px;
    font-size: 12.5px;
}
.cv-credit-form-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 10px 0 8px 0;
}
.cv-credit-form-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.cv-credit-form-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
.cv-credit-form-lbl {
    width: 90px;
    text-align: right;
    padding-right: 12px;
    font-size: 12.5px;
    color: #334155;
}
.cv-credit-form-lbl-top {
    width: 90px;
    text-align: right;
    padding-right: 12px;
    font-size: 12.5px;
    color: #334155;
    vertical-align: top;
    padding-top: 4px;
}
.cv-credit-input-date {
    width: 130px;
    font-size: 12.5px;
    height: 28px;
    background: #ffffff;
    padding: 2px 8px;
}
.cv-credit-input-desc {
    width: 100%;
    font-size: 12.5px;
    background: #ffffff;
    padding: 4px 8px;
}
.cv-credit-input-amount {
    width: 130px;
    font-size: 12.5px;
    height: 28px;
    background: #ffffff;
    padding: 2px 8px;
}
.cv-credit-save-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 12.5px;
    padding: 5px 18px;
    border-radius: 4px;
    font-weight: 600;
}
.cv-credit-cancel-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 12.5px;
    padding: 5px 14px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Invoices/Billing Card Action Buttons (Matching media_1789737554452.png) */
.cv-inv-actions-list {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.cv-inv-action-link {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e3a5f !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    width: auto !important;
    box-sizing: border-box !important;
}
.cv-inv-action-link:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0284c7 !important;
    text-decoration: none !important;
}
.cv-inv-action-icon {
    font-size: 12px;
    width: 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Profile Card Action Buttons (Matching media_1789737554452.png) */
.profile-card-actions .btn,
.profile-card-actions .btn-secondary,
.profile-card .btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e3a5f;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: all 0.15s ease;
}
.profile-card-actions .btn:hover,
.profile-card-actions .btn-secondary:hover,
.profile-card .btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0284c7;
}
.profile-card-actions .btn i,
.profile-card-actions .btn-secondary i,
.profile-card .btn-secondary i {
    color: #1e3a5f;
    font-size: 12px;
}
.profile-card-actions .btn:hover i,
.profile-card-actions .btn-secondary:hover i,
.profile-card .btn-secondary:hover i {
    color: #0284c7;
}

/* ============================================================
   Invoices Statistics Cards & Summary (Card-Based Design)
   ============================================================ */
.invoices-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}
@media (max-width: 1024px) {
    .invoices-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .invoices-stat-grid {
        grid-template-columns: 1fr;
    }
}
.invoices-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
}
.invoices-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.invoices-stat-card.active-emerald {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.invoices-stat-card.active-amber {
    border-color: #f59e0b;
    background: #fffbeb;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.invoices-stat-card.active-rose {
    border-color: #ef4444;
    background: #fff1f2;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
.invoices-stat-card.active-teal {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.2);
}
.invoices-stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 1px solid transparent;
}
.invoices-stat-icon-wrap.emerald {
    background: #d1fae5;
    color: #059669;
    border-color: #a7f3d0;
}
.invoices-stat-icon-wrap.amber {
    background: #fef3c7;
    color: #d97706;
    border-color: #fde68a;
}
.invoices-stat-icon-wrap.rose {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecdd3;
}
.invoices-stat-icon-wrap.teal {
    background: #ccfbf1;
    color: #0f766e;
    border-color: #99f6e4;
}
.invoices-stat-content {
    flex: 1;
    min-width: 0;
}
.invoices-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.invoices-stat-val {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 3px;
    white-space: nowrap;
}
.invoices-stat-val.val-emerald { color: #059669; }
.invoices-stat-val.val-amber { color: #d97706; }
.invoices-stat-val.val-rose { color: #dc2626; }
.invoices-stat-val.val-teal { color: #0f766e; }
.invoices-stat-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Bottom Invoices Summary Bar (Matching media_1789742003262.png) */
.invoices-summary-bottom-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 2px dashed #cbd5e1;
    border-radius: 6px;
    padding: 14px 20px;
    margin-top: 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.invoices-summary-bottom-item {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.invoices-summary-bottom-item .sum-amt-emerald {
    color: #059669;
    font-weight: 800;
}
.invoices-summary-bottom-item .sum-amt-amber {
    color: #d97706;
    font-weight: 800;
}
.invoices-summary-bottom-item .sum-amt-rose {
    color: #dc2626;
    font-weight: 800;
}
.invoices-summary-bottom-sep {
    color: #cbd5e1;
    font-size: 16px;
    user-select: none;
}

/* ============== Invoices Page Specific Styles ============== */
.invoices-page-header {
    margin-bottom: 16px;
}

.invoices-top-toolbar {
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-invoices-print-top {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-invoices-print-top:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0d9488;
}

.invoices-filter-wrapper {
    margin-bottom: 24px;
    margin-top: -16px;
}

.invoices-filter-card {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.invoices-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 36px;
    margin-bottom: 24px;
    position: relative;
}

@media (max-width: 768px) {
    .invoices-filter-grid {
        grid-template-columns: 1fr;
    }
}

.invoices-filter-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.invoices-filter-col-right {
    border-left: 1px solid #f1f5f9;
    padding-left: 36px;
}

@media (max-width: 768px) {
    .invoices-filter-col-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 18px;
    }
}

.invoices-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.invoices-filter-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoices-filter-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.invoices-filter-icon.gray    { background: #f1f5f9; color: #475569; }
.invoices-filter-icon.purple  { background: #f3e8ff; color: #9333ea; }
.invoices-filter-icon.blue    { background: #eff6ff; color: #3b82f6; }
.invoices-filter-icon.emerald { background: #d1fae5; color: #059669; }
.invoices-filter-icon.indigo  { background: #e0e7ff; color: #4f46e5; }
.invoices-filter-icon.amber   { background: #fef3c7; color: #d97706; }
.invoices-filter-icon.sky     { background: #e0f2fe; color: #0284c7; }
.invoices-filter-icon.rose    { background: #ffe4e6; color: #e11d48; }

.invoices-filter-select {
    flex: 1;
    max-width: 100%;
    height: 42px;
    font-size: 13px;
    border-radius: 8px;
    border-color: #cbd5e1;
}

.invoices-filter-input {
    flex: 1;
    max-width: 100%;
    height: 42px;
    padding: 10px 14px;
    border-radius: 8px;
    border-color: #cbd5e1;
    font-size: 13px;
}

.invoices-filter-range-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.invoices-filter-range-input {
    flex: 1;
    height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    border-color: #cbd5e1;
    font-size: 13px;
}

.invoices-filter-range-sep {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.invoices-filter-actions {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.btn-invoices-search {
    background: #0f766e !important;
    border-color: #0f766e !important;
    color: #ffffff !important;
    padding: 10px 36px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-invoices-search:hover {
    background: #0d9488 !important;
    border-color: #0d9488 !important;
}

/* Aging Banner */
.invoices-aging-banner {
    background: #ccfbf1;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invoices-aging-text {
    font-size: 13px;
    color: #0f766e;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoices-aging-text .aging-val {
    color: #1e293b;
}

.invoices-aging-text .aging-curr {
    color: #64748b;
    font-weight: 500;
}

.invoices-aging-clear-btn {
    font-size: 12px;
    padding: 4px 12px;
    text-decoration: none;
}

/* Sub-bar & Listing Table */
.invoices-subbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #475569;
    margin-top: 30px;
}

.invoices-table-card {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.invoices-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.invoices-table thead tr {
    font-size: 12px;
}

.invoices-th-chk { width: 30px; text-align: center; }
.invoices-th-num { width: 90px; }
.invoices-th-date { width: 100px; }
.invoices-th-capture { width: 130px; }
.invoices-th-total { width: 110px; text-align: right; }
.invoices-th-method { width: 120px; }
.invoices-th-status { width: 90px; }
.invoices-th-actions { width: 115px; text-align: center; }

.invoices-row {
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
}

.invoices-td {
    padding: 10px 12px;
}

.invoices-td-center {
    padding: 10px 12px;
    text-align: center;
}

.invoices-td-right {
    padding: 10px 12px;
    text-align: right;
    color: #1e293b;
    font-weight: 600;
}

.invoices-td-num {
    padding: 10px 12px;
    font-weight: 600;
    color: #334155;
}

.invoices-td-muted {
    padding: 10px 12px;
    color: #94a3b8;
}

.invoices-td-secondary {
    padding: 10px 12px;
    color: #475569;
}

.invoices-client-tag {
    font-size: 9px;
    margin-left: 4px;
}

.invoices-status-paid {
    color: #10b981;
    font-weight: 700;
}

.invoices-status-unpaid {
    color: #ef4444;
    font-weight: 700;
}

.invoices-empty-td {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}

/* Action Icons */
.invoices-actions-cell {
    padding: 10px 12px;
    text-align: center;
    white-space: nowrap;
}

.invoices-action-btn {
    margin-right: 8px;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.invoices-action-btn.view   { color: #0f766e; }
.invoices-action-btn.edit   { color: #2563eb; }
.invoices-action-btn.print  { color: #0284c7; }
.invoices-action-btn.delete {
    color: #dc2626;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

/* Bulk Toolbar */
.invoices-bulk-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.invoices-bulk-label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
}

.invoices-bulk-btn {
    font-size: 11px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.invoices-bulk-btn.paid {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Dynamic Pagination */
.invoices-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 6px;
    font-size: 12px;
}

.invoices-page-active {
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
}

.invoices-page-item {
    padding: 2px 8px;
}

.invoices-page-dots {
    color: #64748b;
    padding: 0 4px;
}

.invoices-page-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Delete Modal */
.invoices-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.invoices-modal-dialog {
    background: #ffffff;
    width: 420px;
    max-width: 92%;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.invoices-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.invoices-modal-title {
    margin: 0;
    font-size: 16px;
    color: #dc2626;
}

.invoices-modal-body-text {
    font-size: 13px;
    color: #334155;
    margin-bottom: 20px;
}

.invoices-modal-footer {
    text-align: right;
    gap: 8px;
    display: flex;
    justify-content: flex-end;
}

.btn-modal-delete-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

/* ========================================================= */
/* DATEPICKER INSIDE ICON & FIELD GROUP STYLES               */
/* ========================================================= */
.cv-form-field-group,
.invoice-date-input-group,
.date-input-group,
.date-input-wrap,
.cv-grid-row-140:has(input[placeholder="DD/MM/YYYY"]),
.cv-grid-row-140:has(input.datepicker) {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.cv-form-field-group input.form-control,
.invoice-date-input-group input.form-control,
.date-input-group input.form-control,
.date-input-wrap input.form-control {
    width: 100%;
}

.cv-form-field-group:has(.cv-muted-icon) input.form-control,
.cv-form-field-group:has(.fa-calendar) input.form-control,
.cv-form-field-group:has(.fa-calendar-days) input.form-control,
.invoice-date-input-group input.form-control,
.date-input-group input.form-control,
.date-input-wrap input.form-control {
    padding-right: 34px !important;
}

.cv-form-field-group .cv-muted-icon,
.cv-form-field-group .fa-calendar,
.cv-form-field-group .fa-calendar-days,
.cv-form-field-group > i,
.invoice-date-input-group .invoice-date-addon,
.invoice-date-input-group .cal-icon,
.invoice-date-input-group .fa-calendar,
.date-input-wrap .fa-calendar,
.date-input-wrap .fa-calendar-days {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13.5px;
    cursor: pointer;
    z-index: 3;
    pointer-events: auto;
    transition: color 0.15s ease;
}

.cv-form-field-group .cv-muted-icon:hover,
.cv-form-field-group .fa-calendar:hover,
.cv-form-field-group .fa-calendar-days:hover,
.invoice-date-input-group .fa-calendar:hover,
.date-input-wrap .fa-calendar:hover {
    color: #0284c7;
}

/* Standalone datepicker input SVG icon when no adjacent icon tag exists */
input.datepicker:not(.no-cal-icon),
input.invoice-input-date:not(.no-cal-icon),
input[placeholder="DD/MM/YYYY"]:not(.no-cal-icon) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.75' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px 15px;
    padding-right: 32px !important;
    cursor: pointer;
}

.cv-form-field-group:has(.cv-muted-icon) input,
.cv-form-field-group:has(.fa-calendar) input,
.invoice-date-input-group:has(.fa-calendar) input,
.date-input-wrap:has(.fa-calendar) input {
    background-image: none !important;
}

/* ========================================================= */
/* PREMIUM MODERN FLATPICKR CALENDAR THEME                   */
/* ========================================================= */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
    font-family: inherit !important;
    width: 300px !important;
    padding: 6px !important;
    overflow: hidden !important;
    z-index: 999999 !important;
}

.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after {
    border-bottom-color: #f8fafc !important;
}
.flatpickr-calendar.arrowBottom:before,
.flatpickr-calendar.arrowBottom:after {
    border-top-color: #ffffff !important;
}

/* Header / Months Bar */
.flatpickr-months {
    background: #f8fafc !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 6px 4px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative !important;
}

.flatpickr-months .flatpickr-month {
    color: #0f172a !important;
    height: 38px !important;
}

.flatpickr-current-month {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

.flatpickr-current-month .cur-month {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.flatpickr-current-month .cur-year {
    font-weight: 700 !important;
    color: #0f172a !important;
}

.flatpickr-current-month input.cur-year[disabled],
.flatpickr-current-month input.cur-year[disabled]:hover {
    color: #0f172a !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp,
.flatpickr-current-month .numInputWrapper span.arrowDown {
    border-color: #cbd5e1 !important;
}

/* Prev / Next Arrows */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    top: 8px !important;
    padding: 6px 8px !important;
    height: 30px !important;
    width: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    transition: all 0.15s ease !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #e2e8f0 !important;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #475569 !important;
    width: 13px !important;
    height: 13px !important;
}

/* Weekday Headers */
.flatpickr-weekdays {
    background: #f8fafc !important;
    height: 30px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 4px !important;
}

span.flatpickr-weekday {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Days Container */
.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 4px 0 !important;
}

/* Day Cells */
.flatpickr-day {
    border-radius: 8px !important;
    height: 36px !important;
    line-height: 36px !important;
    max-width: 36px !important;
    margin: 2px auto !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    transition: all 0.12s ease !important;
}

.flatpickr-day:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e1 !important;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f8fafc !important;
    color: #94a3b8 !important;
}

/* Today Day */
.flatpickr-day.today {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
    background: transparent !important;
}

.flatpickr-day.today:hover {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

/* Selected Day */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: #0284c7 !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.4) !important;
}

/* In Range */
.flatpickr-day.inRange {
    background: #e0f2fe !important;
    border-color: transparent !important;
    color: #0369a1 !important;
    border-radius: 0 !important;
}

/* Disabled Days */
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #e2e8f0 !important;
    background: transparent !important;
    cursor: not-allowed !important;
}

/* Time Picker */
.flatpickr-time {
    border-top: 1px solid #f1f5f9 !important;
    height: 40px !important;
    line-height: 40px !important;
    background: #f8fafc !important;
    border-radius: 0 0 8px 8px !important;
}

.flatpickr-time input {
    font-weight: 600 !important;
    color: #0f172a !important;
    font-size: 13px !important;
}

.flatpickr-time .flatpickr-time-separator {
    color: #64748b !important;
    font-weight: 700 !important;
}

/* ========================================================= */
/* WHMCS ORDER CREATION / EDIT PAGE STYLES                   */
/* ========================================================= */
.whmcs-order-container {
    padding: 0 4px 30px 4px;
}
.whmcs-order-title {
    font-size: 19px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
}
.whmcs-order-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) {
    .whmcs-order-grid {
        grid-template-columns: 1fr;
    }
}
.whmcs-box-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.whmcs-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-top: 0;
    margin-bottom: 14px;
}
.whmcs-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.whmcs-field-row:last-child {
    margin-bottom: 0;
}
.whmcs-field-lbl {
    width: 130px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    text-align: right;
    padding-right: 14px;
}
.whmcs-control-sm {
    height: 30px;
    padding: 3px 8px;
    font-size: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
}
.whmcs-control-sm:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
}
.whmcs-w-340 { width: 340px; }
.whmcs-w-280 { width: 280px; }
.whmcs-w-260 { width: 260px; }
.whmcs-w-220 { width: 220px; }
.whmcs-w-200 { width: 200px; }
.whmcs-w-180 { width: 180px; }
.whmcs-w-120 { width: 120px; }
.whmcs-w-110 { width: 110px; }
.whmcs-w-70  { width: 70px; }

.whmcs-promo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.whmcs-promo-link {
    font-size: 11.5px;
    color: #0284c7;
    text-decoration: none;
}
.whmcs-promo-link:hover {
    text-decoration: underline;
}
.whmcs-checkboxes-row {
    margin-top: 12px;
}
.whmcs-checkboxes-group {
    display: flex;
    align-items: center;
    gap: 18px;
}
.whmcs-check-lbl {
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}
.whmcs-accent-teal {
    accent-color: #0f766e;
}
.whmcs-price-override-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.whmcs-help-note {
    font-size: 11px;
    color: #64748b;
}
.whmcs-addons-section {
    display: none;
    margin-top: 10px;
}
.whmcs-addons-row {
    align-items: flex-start;
}
.whmcs-addons-lbl {
    padding-top: 2px;
}
.whmcs-addons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 550px;
}
.whmcs-addon-item-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    margin: 0;
    padding: 2px 0;
}
.whmcs-addon-chk-input {
    accent-color: #0f766e;
    width: 15px;
    height: 15px;
}
.whmcs-addon-meta {
    color: #64748b;
}
.whmcs-custom-fields-section {
    display: none;
    margin-top: 4px;
}
.whmcs-custom-fields-heading {
    margin: 10px 0 8px 130px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
    letter-spacing: 0.02em;
}
.whmcs-req-star {
    color: #dc2626;
}
.whmcs-btn-offset {
    margin-top: 14px;
    padding-left: 130px;
}
.whmcs-domain-reg-row {
    margin-bottom: 12px;
}
.whmcs-domain-type-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.whmcs-domain-type-lbl {
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}
.whmcs-domains-container {
    display: none;
}
.whmcs-domain-add-wrap {
    margin-top: 10px;
    padding-left: 130px;
    display: none;
}
.whmcs-entry-remove-wrap {
    text-align: right;
    margin-bottom: 6px;
}
.whmcs-btn-remove-entry {
    font-size: 11px;
    padding: 2px 8px;
}
.whmcs-btn-green-add {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #166534;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}
.whmcs-btn-green-add:hover {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}
.whmcs-btn-green-add i {
    color: #16a34a;
    font-size: 12px;
}
.whmcs-summary-wrapper {
    display: flex;
    flex-direction: column;
}
.whmcs-summary-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 12px 0;
}
.whmcs-summary-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 14px;
}
.whmcs-summary-items-list {
    padding: 12px 14px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border-bottom: 1px dashed #cbd5e1;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.whmcs-summary-item-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #1e293b;
}
.whmcs-summary-item-discount {
    color: #dc2626;
}
.whmcs-summary-subtotal {
    padding: 10px 14px;
    background: #fef08a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #854d0e;
    border-bottom: 1px solid #fef08a;
}
.whmcs-summary-vat {
    padding: 10px 14px;
    background: #e0f2fe;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #0369a1;
    border-bottom: 1px solid #e0f2fe;
}
.whmcs-summary-total {
    padding: 12px 14px;
    background: #dcfce7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.whmcs-summary-total-lbl {
    font-size: 18px;
    font-weight: 700;
    color: #15803d;
}
.whmcs-summary-total-val {
    font-size: 20px;
    font-weight: 800;
    color: #15803d;
}
.whmcs-submit-order-btn {
    background: #2563eb;
    border: 1px solid #1d4ed8;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.whmcs-submit-order-btn:hover {
    background: #1d4ed8;
}
.whmcs-product-entry {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #cbd5e1;
}
.whmcs-product-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}
.whmcs-domain-entry {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #cbd5e1;
}
.whmcs-domain-entry:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}









