/**
 * CRS Button System — final authority for button/link colors and icons.
 * Loaded after main.css. Covers crs-btn, legacy btn, and page-specific action classes.
 */

/* -------------------------------------------------------------------------- */
/* Filled green controls — white label + icon (default, visited, focus)        */
/* -------------------------------------------------------------------------- */
html body a.crs-btn-primary,
html body button.crs-btn-primary,
html body a.crs-btn-success,
html body button.crs-btn-success,
html body a.crs-btn-secondary,
html body button.crs-btn-secondary,
html body a.btn-primary,
html body button.btn-primary,
html body a.btn-success,
html body button.btn-success,
html body a.crs-history-btn,
html body button.crs-save-btn,
html body a.crs-admin-btn,
html body a.crs-action-link,
html body a.crs-record-status-fix,
html body a.crs-dashboard-status-fix,
html body button.crs-cashout-submit,
html body button.crs-cashbank-submit,
html body a.crs-recon-btn-primary,
html body button.crs-recon-btn-primary,
html body button.crs-packing-resolve-btn,
html body a.crs-psdh-btn-print,
html body button.crs-psdh-btn-print,
html body .crs-home-card-btn,
html body a.crs-btn-primary:link,
html body a.crs-btn-primary:visited,
html body a.crs-btn-success:link,
html body a.crs-btn-success:visited,
html body a.crs-btn-secondary:link,
html body a.crs-btn-secondary:visited,
html body a.btn-primary:link,
html body a.btn-primary:visited,
html body a.btn-success:link,
html body a.btn-success:visited,
html body a.crs-history-btn:link,
html body a.crs-history-btn:visited,
html body a.crs-admin-btn:link,
html body a.crs-admin-btn:visited,
html body a.crs-action-link:link,
html body a.crs-action-link:visited,
html body a.crs-record-status-fix:link,
html body a.crs-record-status-fix:visited,
html body a.crs-dashboard-status-fix:link,
html body a.crs-dashboard-status-fix:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.crs-btn-primary iconify-icon,
html body button.crs-btn-primary iconify-icon,
html body a.crs-btn-success iconify-icon,
html body button.crs-btn-success iconify-icon,
html body a.crs-btn-secondary iconify-icon,
html body button.crs-btn-secondary iconify-icon,
html body a.btn-primary iconify-icon,
html body button.btn-primary iconify-icon,
html body a.btn-success iconify-icon,
html body button.btn-success iconify-icon,
html body a.crs-history-btn iconify-icon,
html body button.crs-save-btn iconify-icon,
html body a.crs-admin-btn iconify-icon,
html body a.crs-action-link iconify-icon,
html body a.crs-record-status-fix iconify-icon,
html body a.crs-dashboard-status-fix iconify-icon,
html body button.crs-cashout-submit iconify-icon,
html body button.crs-cashbank-submit iconify-icon,
html body a.crs-recon-btn-primary iconify-icon,
html body button.crs-recon-btn-primary iconify-icon,
html body button.crs-packing-resolve-btn iconify-icon,
html body a.crs-psdh-btn-print iconify-icon,
html body button.crs-psdh-btn-print iconify-icon,
html body .crs-home-card-btn iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.crs-btn-primary:hover,
html body a.crs-btn-primary:focus,
html body button.crs-btn-primary:hover:not(:disabled),
html body button.crs-btn-primary:focus:not(:disabled),
html body a.crs-btn-success:hover,
html body a.crs-btn-success:focus,
html body button.crs-btn-success:hover:not(:disabled),
html body button.crs-btn-success:focus:not(:disabled),
html body a.crs-btn-secondary:hover,
html body a.crs-btn-secondary:focus,
html body button.crs-btn-secondary:hover:not(:disabled),
html body button.crs-btn-secondary:focus:not(:disabled),
html body a.btn-primary:hover,
html body a.btn-primary:focus,
html body button.btn-primary:hover:not(:disabled),
html body button.btn-primary:focus:not(:disabled),
html body a.btn-success:hover,
html body a.btn-success:focus,
html body button.btn-success:hover:not(:disabled),
html body button.btn-success:focus:not(:disabled),
html body a.crs-history-btn:hover,
html body a.crs-history-btn:focus,
html body button.crs-save-btn:hover:not(:disabled),
html body button.crs-save-btn:focus:not(:disabled),
html body a.crs-admin-btn:hover,
html body a.crs-admin-btn:focus,
html body a.crs-action-link:hover,
html body a.crs-action-link:focus,
html body a.crs-record-status-fix:hover,
html body a.crs-record-status-fix:focus,
html body a.crs-dashboard-status-fix:hover,
html body a.crs-dashboard-status-fix:focus,
html body button.crs-cashout-submit:hover:not(:disabled),
html body button.crs-cashbank-submit:hover:not(:disabled),
html body a.crs-recon-btn-primary:hover,
html body button.crs-recon-btn-primary:hover:not(:disabled),
html body button.crs-packing-resolve-btn:hover:not(:disabled),
html body a.crs-psdh-btn-print:hover,
html body button.crs-psdh-btn-print:hover:not(:disabled) {
    background: #185D30 !important;
    background-color: #185D30 !important;
    border-color: #185D30 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.crs-btn-primary:hover iconify-icon,
html body a.crs-btn-primary:focus iconify-icon,
html body button.crs-btn-primary:hover:not(:disabled) iconify-icon,
html body button.crs-btn-primary:focus:not(:disabled) iconify-icon,
html body a.crs-btn-success:hover iconify-icon,
html body a.crs-btn-success:focus iconify-icon,
html body button.crs-btn-success:hover:not(:disabled) iconify-icon,
html body button.crs-btn-success:focus:not(:disabled) iconify-icon,
html body a.crs-btn-secondary:hover iconify-icon,
html body a.crs-btn-secondary:focus iconify-icon,
html body button.crs-btn-secondary:hover:not(:disabled) iconify-icon,
html body button.crs-btn-secondary:focus:not(:disabled) iconify-icon,
html body a.btn-primary:hover iconify-icon,
html body a.btn-primary:focus iconify-icon,
html body button.btn-primary:hover:not(:disabled) iconify-icon,
html body button.btn-primary:focus:not(:disabled) iconify-icon,
html body a.btn-success:hover iconify-icon,
html body a.btn-success:focus iconify-icon,
html body button.btn-success:hover:not(:disabled) iconify-icon,
html body button.btn-success:focus:not(:disabled) iconify-icon,
html body a.crs-history-btn:hover iconify-icon,
html body a.crs-history-btn:focus iconify-icon,
html body button.crs-save-btn:hover:not(:disabled) iconify-icon,
html body a.crs-admin-btn:hover iconify-icon,
html body a.crs-action-link:hover iconify-icon,
html body a.crs-record-status-fix:hover iconify-icon,
html body a.crs-dashboard-status-fix:hover iconify-icon,
html body button.crs-cashout-submit:hover:not(:disabled) iconify-icon,
html body button.crs-cashbank-submit:hover:not(:disabled) iconify-icon,
html body a.crs-psdh-btn-print:hover iconify-icon,
html body button.crs-psdh-btn-print:hover:not(:disabled) iconify-icon,
html body .crs-home-card-btn iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Filled red / danger controls                                                */
/* -------------------------------------------------------------------------- */
html body a.crs-btn-danger,
html body button.crs-btn-danger,
html body a.crs-btn-danger:link,
html body a.crs-btn-danger:visited,
html body a.crs-recon-btn-delete,
html body button.crs-recon-btn-delete,
html body .action-btn.btn-delete,
html body .action-btn.btn-del,
html body .btn-delete-order {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .action-btn.btn-delete iconify-icon,
html body .action-btn.btn-del iconify-icon,
html body .btn-delete-order iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body button.btn-print,
html body .action-btn.btn-print,
html body .action-btn.btn-view,
html body button.btn-print iconify-icon,
html body .action-btn.btn-print iconify-icon,
html body .action-btn.btn-view iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.btn-report,
html body button.btn-report,
html body a.btn-report:link,
html body a.btn-report:visited {
    color: #146032 !important;
    -webkit-text-fill-color: #146032 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html body a.btn-report iconify-icon,
html body button.btn-report iconify-icon {
    color: #146032 !important;
    -webkit-text-fill-color: #146032 !important;
}

html body a.btn-report:hover,
html body a.btn-report:focus,
html body button.btn-report:hover:not(:disabled),
html body button.btn-report:focus:not(:disabled) {
    background: #146032 !important;
    border-color: #146032 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.btn-report:hover iconify-icon,
html body button.btn-report:hover:not(:disabled) iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .action-btn.btn-send,
html body .action-btn.btn-send iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .crs-import-action-btn,
html body .crs-import-action-btn iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.crs-btn-danger:hover,
html body a.crs-btn-danger:focus,
html body button.crs-btn-danger:hover:not(:disabled),
html body button.crs-btn-danger:focus:not(:disabled),
html body a.crs-recon-btn-delete:hover,
html body button.crs-recon-btn-delete:hover:not(:disabled) {
    background: #b91c1c !important;
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body a.crs-btn-danger iconify-icon,
html body button.crs-btn-danger iconify-icon,
html body a.crs-recon-btn-delete iconify-icon,
html body button.crs-recon-btn-delete iconify-icon,
html body a.crs-btn-danger:hover iconify-icon,
html body button.crs-btn-danger:hover:not(:disabled) iconify-icon,
html body a.crs-recon-btn-delete:hover iconify-icon,
html body button.crs-recon-btn-delete:hover:not(:disabled) iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Light / outline / history controls — green label + icon                     */
/* -------------------------------------------------------------------------- */
html body .crs-header a.crs-btn-outline,
html body .crs-header button.crs-btn-outline,
html body a.crs-btn-outline,
html body button.crs-btn-outline,
html body a.btn-outline,
html body button.btn-outline,
html body a.btn-white,
html body button.btn-white,
html body a.crs-btn-history-custom,
html body a.crs-recon-btn-outline,
html body a.crs-cashbank-link,
html body a.crs-import-proof-view,
html body .page-header a.btn-outline,
html body .page-header a.btn-white,
html body .page-header button.btn-outline,
html body .crs-smart-page-header a.crs-btn-outline,
html body .mgr-page-header a.crs-btn-outline,
html body .crs-page-header-custom a.crs-btn-history-custom,
html body .crs-page-header-custom .btn-outline,
html body .crs-page-header-custom .btn-white,
html body .crs-page-title .crs-page-actions a.crs-btn-outline,
html body a.crs-btn-outline:link,
html body a.crs-btn-outline:visited,
html body a.btn-outline:link,
html body a.btn-outline:visited,
html body a.btn-white:link,
html body a.btn-white:visited,
html body a.crs-btn-history-custom:link,
html body a.crs-btn-history-custom:visited,
html body a.crs-recon-btn-outline:link,
html body a.crs-recon-btn-outline:visited,
html body a.crs-cashbank-link:link,
html body a.crs-cashbank-link:visited,
html body .crs-header a.crs-btn-outline span {
    color: #146032 !important;
    -webkit-text-fill-color: #146032 !important;
}

html body .crs-header a.crs-btn-outline iconify-icon,
html body .crs-header button.crs-btn-outline iconify-icon,
html body a.crs-btn-outline iconify-icon,
html body button.crs-btn-outline iconify-icon,
html body a.btn-outline iconify-icon,
html body button.btn-outline iconify-icon,
html body a.btn-white iconify-icon,
html body button.btn-white iconify-icon,
html body a.crs-btn-history-custom iconify-icon,
html body a.crs-recon-btn-outline iconify-icon,
html body a.crs-cashbank-link iconify-icon,
html body a.crs-import-proof-view iconify-icon,
html body .page-header a.btn-outline iconify-icon,
html body .page-header a.btn-white iconify-icon,
html body .page-header button.btn-outline iconify-icon,
html body .crs-smart-page-header a.crs-btn-outline iconify-icon,
html body .mgr-page-header a.crs-btn-outline iconify-icon,
html body .crs-page-header-custom a.crs-btn-history-custom iconify-icon,
html body .crs-page-title .crs-page-actions a.crs-btn-outline iconify-icon {
    color: #146032 !important;
    -webkit-text-fill-color: #146032 !important;
}

html body .crs-header a.crs-btn-outline:hover,
html body .crs-header a.crs-btn-outline:focus,
html body .crs-header button.crs-btn-outline:hover:not(:disabled),
html body .crs-header button.crs-btn-outline:focus:not(:disabled),
html body a.crs-btn-outline:hover,
html body a.crs-btn-outline:focus,
html body button.crs-btn-outline:hover:not(:disabled),
html body button.crs-btn-outline:focus:not(:disabled),
html body a.btn-outline:hover,
html body a.btn-outline:focus,
html body button.btn-outline:hover:not(:disabled),
html body button.btn-outline:focus:not(:disabled),
html body a.btn-white:hover,
html body a.btn-white:focus,
html body button.btn-white:hover:not(:disabled),
html body a.crs-btn-history-custom:hover,
html body a.crs-btn-history-custom:focus,
html body a.crs-recon-btn-outline:hover,
html body a.crs-cashbank-link:hover,
html body a.crs-import-proof-view:hover,
html body .page-header a.btn-outline:hover,
html body .page-header a.btn-outline:focus,
html body .page-header button.btn-outline:hover:not(:disabled),
html body .crs-smart-page-header a.crs-btn-outline:hover,
html body .mgr-page-header a.crs-btn-outline:hover,
html body .crs-page-header-custom a.crs-btn-history-custom:hover,
html body .crs-page-title .crs-page-actions a.crs-btn-outline:hover {
    background: #146032 !important;
    background-color: #146032 !important;
    border-color: #146032 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .crs-header a.crs-btn-outline:hover iconify-icon,
html body .crs-header button.crs-btn-outline:hover:not(:disabled) iconify-icon,
html body a.crs-btn-outline:hover iconify-icon,
html body button.crs-btn-outline:hover:not(:disabled) iconify-icon,
html body a.btn-outline:hover iconify-icon,
html body button.btn-outline:hover:not(:disabled) iconify-icon,
html body a.btn-white:hover iconify-icon,
html body a.crs-btn-history-custom:hover iconify-icon,
html body a.crs-recon-btn-outline:hover iconify-icon,
html body a.crs-cashbank-link:hover iconify-icon,
html body .page-header a.btn-outline:hover iconify-icon,
html body .page-header button.btn-outline:hover:not(:disabled) iconify-icon,
html body .crs-smart-page-header a.crs-btn-outline:hover iconify-icon,
html body .mgr-page-header a.crs-btn-outline:hover iconify-icon,
html body .crs-page-header-custom a.crs-btn-history-custom:hover iconify-icon,
html body .crs-page-title .crs-page-actions a.crs-btn-outline:hover iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Dark header bars: keep white pill buttons readable by default */
html body .page-header a.btn-outline,
html body .page-header a.btn-white,
html body .page-header button.btn-outline,
html body .crs-smart-page-header a.crs-btn-outline,
html body .mgr-page-header a.crs-btn-outline,
html body .crs-page-header-custom a.crs-btn-history-custom,
html body .crs-page-header-custom .btn-outline,
html body .crs-page-header-custom .btn-white {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

/* -------------------------------------------------------------------------- */
/* Header chrome icons                                                         */
/* -------------------------------------------------------------------------- */
html body .crs-page-title h1 iconify-icon,
html body .crs-main .crs-page-title h1 iconify-icon {
    color: #146032 !important;
    -webkit-text-fill-color: #146032 !important;
}

html body .crs-smart-page-header h1 iconify-icon,
html body .mgr-page-header h1 iconify-icon,
html body .page-header h1 iconify-icon,
html body .crs-page-header-custom h1 iconify-icon,
html body .crs-recon-header h1 iconify-icon,
html body .crs-financial-title h1 iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .crs-menu-toggle iconify-icon,
html body .crs-sidebar-close iconify-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body .crs-sidebar-nav a iconify-icon,
html body .crs-mobile-nav-item iconify-icon,
html body .crs-mobile-nav-item .crs-icon {
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}
