/* 
   LedgerSeva ERP - Core Stylesheet
   Designed with Outfit Font and Idea 3 Color Palette
*/

:root {
    --bg-main: #FFF8F0;
    --primary: #392F5A;
    --primary-light: #4c3f78;
    --accent-orange: #FF8811;
    --accent-yellow: #F4D06F;
    --accent-mint: #9DD9D2;
    --text-main: #392F5A;
    --text-muted: #6e648f;
    --card-bg: #ffffff;
    --border-color: rgba(57, 47, 90, 0.08);
    --border-hover: rgba(57, 47, 90, 0.15);
    --shadow-sm: 0 4px 10px rgba(57, 47, 90, 0.02);
    --shadow-md: 0 8px 24px rgba(57, 47, 90, 0.04);
    --shadow-lg: 0 16px 40px rgba(57, 47, 90, 0.08);
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden; /* Desktop fixed screen app */
    height: 100vh;
    width: 100vw;
}

/* Scrollbar styling for tables and lists */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(57, 47, 90, 0.02);
}
::-webkit-scrollbar-thumb {
    background: rgba(57, 47, 90, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* Utility Animations */
.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideIn {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- SSP LOGIN PORTAL STYLING --- */
.login-screen {
    display: flex;
    height: 100vh;
    width: 100vw;
    background-color: var(--bg-main);
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, #20183b 100%);
    color: #FFF8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 136, 17, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.login-left-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-left-logo-sq {
    width: 48px;
    height: 48px;
    background-color: var(--accent-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 136, 17, 0.35);
}

.login-left-header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.login-left-info {
    max-width: 480px;
    z-index: 2;
}

.login-left-info h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--accent-yellow);
}

.login-left-info p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 248, 240, 0.8);
    margin-bottom: 2rem;
}

.announcement-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-orange);
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    line-height: 1.5;
}

.login-left-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 248, 240, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background-color: var(--bg-main);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.login-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.login-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* --- UNIVERSAL HIGH-LEGIBILITY DATA ENTRY FORMS (LOGIN MATCH STYLING) --- */
.form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
    width: 100% !important;
    margin-bottom: 1.25rem !important;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
}

.form-input-group,
.form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    box-sizing: border-box !important;
}

.form-group.full-width,
.form-input-group.full-width {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

.form-group label,
.form-input-group label,
label {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: var(--primary) !important;
    letter-spacing: 0.2px !important;
}

/* Universal input styling across all modals, pages, cards, and forms */
.form-group input, 
.form-group select, 
.form-group textarea,
.form-input-group input,
.form-input-group select,
.form-input-group textarea,
.modal-body input,
.modal-body select,
.modal-body textarea,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 11px 16px !important;
    border-radius: 8px !important;
    border: 1.5px solid rgba(57, 47, 90, 0.2) !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 14.5px !important;
    color: var(--primary) !important;
    background-color: #ffffff !important;
    outline: none !important;
    min-height: 46px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

/* Select dropdown arrow customization */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23392F5A"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 36px !important;
    cursor: pointer !important;
}

.form-group textarea,
textarea {
    min-height: 90px !important;
    resize: vertical !important;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 3.5px rgba(255, 136, 17, 0.2) !important;
    background-color: #ffffff !important;
}

.form-group input[readonly], 
.form-group select[disabled],
input[readonly], select[disabled], textarea[readonly] {
    background-color: #F8F9FA !important;
    color: var(--text-muted) !important;
    border-color: rgba(57, 47, 90, 0.1) !important;
    cursor: not-allowed !important;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-with-icon input {
    width: 100% !important;
    padding: 11px 14px 11px 40px !important;
}

.input-icon-svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    z-index: 2;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(57, 47, 90, 0.15);
    min-height: 46px;
}

.btn-primary:hover {
    background-color: var(--accent-orange);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 136, 17, 0.2);
}

.otp-box-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 1.5rem 0;
}

.otp-digit {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 1.5px solid rgba(57, 47, 90, 0.15) !important;
    border-radius: 8px !important;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.otp-digit:focus {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 0 3px rgba(255, 136, 17, 0.18) !important;
}

/* Development OTP Fallback Box */
.dev-otp-box {
    margin-top: 1.5rem;
    background-color: #FFF3CD;
    border: 1px solid #FFEBAA;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: #856404;
}

/* --- MAIN DASHBOARD LAYOUT --- */
.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background-color: var(--primary);
    color: #FFF8F0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    z-index: 10;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.05);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-sq {
    width: 36px;
    height: 36px;
    background-color: var(--accent-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    box-shadow: 0 3px 10px rgba(255, 136, 17, 0.2);
}

.sidebar-brand h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    flex: 1;
    overflow: hidden;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 248, 240, 0.75);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.menu-item.active {
    background-color: var(--accent-orange);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 136, 17, 0.15);
}

.menu-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-footer {
    padding: 1.25rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-block-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.user-block-role {
    font-size: 11px;
    color: var(--accent-yellow);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* App Main Container */
.app-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-main);
}

/* Top Header */
.app-header {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
}

.header-title-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.time-box {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.session-countdown {
    background-color: rgba(255, 136, 17, 0.08);
    border: 1px solid rgba(255, 136, 17, 0.15);
    color: var(--accent-orange);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid rgba(57, 47, 90, 0.15);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background-color: #FCE8E6;
    border-color: #F1C4C2;
    color: #A51D24;
}

/* Content Container */
.app-content {
    flex: 1;
    padding: 1.5rem 2rem;
    overflow-y: auto;
    position: relative;
}

/* Panel Display States */
.app-panel {
    display: none;
    height: 100%;
}

.app-panel.active {
    display: flex;
    flex-direction: column;
}

/* --- DASHBOARD SPECIFIC LAYOUT --- */
.dashboard-layout {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1.5rem;
    height: 100%;
}

/* Metrics Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.metric-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.metric-card.orange::after { background-color: var(--accent-orange); }
.metric-card.yellow::after { background-color: var(--accent-yellow); }
.metric-card.mint::after { background-color: var(--accent-mint); }
.metric-card.indigo::after { background-color: var(--primary); }

.metric-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card.orange .metric-icon-wrapper { background-color: rgba(255, 136, 17, 0.1); color: var(--accent-orange); }
.metric-card.yellow .metric-icon-wrapper { background-color: rgba(244, 208, 111, 0.15); color: #c49823; }
.metric-card.mint .metric-icon-wrapper { background-color: rgba(157, 217, 210, 0.2); color: #438f85; }
.metric-card.indigo .metric-icon-wrapper { background-color: rgba(57, 47, 90, 0.08); color: var(--primary); }

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 250px;
}

.chart-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chart-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-container-inner {
    flex: 1;
    position: relative;
}

/* Quick Actions Grid */
.quick-actions-bar {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.quick-actions-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.quick-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-btn:hover svg {
    fill: #ffffff;
}

.quick-btn-icon {
    width: 20px;
    height: 20px;
    fill: var(--accent-orange);
}

/* --- COMMON CARD / FORM / TABLE ELEMENTS --- */
.card-content-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.content-header-bar {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
}

.content-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.btn-secondary {
    background-color: var(--accent-orange);
    color: var(--primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Fixed UI scroll grid */
.fixed-grid-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.filters-row {
    padding: 1rem 1.5rem;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filters-row input, .filters-row select {
    min-height: 38px !important;
    padding: 6px 12px !important;
    font-size: 13.5px !important;
    width: auto !important;
}

.table-scroll-container {
    flex: 1;
    overflow-y: auto;
}

/* Elegant tables */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.custom-table th {
    background-color: #ffffff;
    color: var(--primary);
    font-weight: 700;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid var(--border-color);
}

.custom-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.custom-table tr:hover td {
    background-color: rgba(157, 217, 210, 0.05);
}

/* Dialog / Overlay Modal */
.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(57, 47, 90, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 640px;
    overflow: hidden;
    animation: modalAnim 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalAnim {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    background-color: var(--primary);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
    max-height: 78vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: #FAFAFA;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: rgba(57, 47, 90, 0.05);
}

/* Badge styling */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-income { background-color: rgba(157, 217, 210, 0.25); color: #1e5952; }
.badge-expense { background-color: rgba(255, 136, 17, 0.15); color: #a35000; }
.badge-active { background-color: #E6F4EA; color: #137333; }
.badge-inactive { background-color: #FCE8E6; color: #C5221F; }
.badge-pending { background-color: #FFF3CD; color: #856404; }

/* Dynamic Tree view for services */
.tree-node {
    margin-left: 1.5rem;
    border-left: 1px dashed rgba(57, 47, 90, 0.2);
    padding-left: 1rem;
    position: relative;
    margin-top: 0.5rem;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 10px;
    height: 1px;
    border-top: 1px dashed rgba(57, 47, 90, 0.2);
}

.tree-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.tree-header:hover {
    background-color: rgba(57, 47, 90, 0.05);
}

/* Support and contact cards */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.support-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

/* --- ENHANCED USEFUL LINKS & EXPERT CARDS --- */
.link-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card-item {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    transition: all 0.25s ease;
    position: relative;
}

.link-card-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.link-card-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    padding-right: 70px; /* Leave space for badge */
}

.link-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.link-card-price-tag {
    background: rgba(255, 136, 17, 0.12);
    color: #c45d00;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.link-card-url-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.link-card-url-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.link-card-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
}

/* Multi-service receipt grid */
.multi-receipt-grid {
    border: 1px solid rgba(57, 47, 90, 0.15);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.multi-receipt-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
    align-items: center;
}

.multi-receipt-row.header-row {
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
}

.multi-receipt-row input {
    min-height: 38px !important;
    padding: 6px 10px !important;
    font-size: 13.5px !important;
    width: 100% !important;
}

/* Tabs for Accounting & Office */
.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: #ffffff;
    padding: 0 1rem;
}

.tab-header {
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-header:hover {
    color: var(--primary);
}

.tab-header.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
    font-weight: 700;
}

.tab-content {
    display: none;
    flex: 1;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Security Developer Options Block Message Overlay */
.security-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #392F5A;
    color: #FFF8F0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    text-align: center;
    padding: 2rem;
}
.security-alert-overlay h1 {
    color: #FF8811;
    font-size: 32px;
    margin-bottom: 1rem;
}
.security-alert-overlay p {
    font-size: 16px;
    max-width: 500px;
    line-height: 1.6;
}

/* Printable Receipt Slip Voucher Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-voucher-area, #printable-voucher-area * {
        visibility: visible;
    }
    #printable-voucher-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}
