/*
 * Emerald fresh colour theme (27-09-2026; the only theme since the user removed Classic the same day).
 * Loaded on every page on top of the normal styles (app_theme_head() in ../app_init.php). Every rule starts
 * with .theme-emerald (class on <html>).
 *   navbar #064E3B  page #F2FAF6  header #D1FAE5 / text #065F46  stripe #F7FCF9  hover #FEF9C3
 *   total #ECFDF5  button #059669 (hover #047857)  links #047857  borders #CDEBDD / #A7F3D0 / #6EE7B7
 */

/* page and links */
html.theme-emerald body { background-color: #F2FAF6; }
/* :where() keeps these weak: buttons and page-specific link colours (e.g. "same as 8906" in orange) win */
.theme-emerald :where(a:not(.btn)) { color: #047857; }
.theme-emerald :where(a:not(.btn)):hover, .theme-emerald :where(a:not(.btn)):focus { color: #065F46; }
.theme-emerald .form-control:focus { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }

/* navbar (desktop and mobile summary page) */
.theme-emerald .navbar-inverse { background-color: #064E3B; border-color: #064E3B; }
.theme-emerald .navbar-inverse .navbar-brand,
.theme-emerald .navbar-inverse .navbar-nav > li > a { color: #D1FAE5; }
.theme-emerald .navbar-inverse .navbar-brand:hover,
.theme-emerald .navbar-inverse .navbar-nav > li > a:hover,
.theme-emerald .navbar-inverse .navbar-nav > li > a:focus { color: #FFFFFF; background-color: #065F46; }
.theme-emerald .navbar-inverse .navbar-nav > .active > a,
.theme-emerald .navbar-inverse .navbar-nav > .active > a:hover,
.theme-emerald .navbar-inverse .navbar-nav > .active > a:focus,
.theme-emerald .navbar-inverse .navbar-nav > .open > a,
.theme-emerald .navbar-inverse .navbar-nav > .open > a:hover,
.theme-emerald .navbar-inverse .navbar-nav > .open > a:focus { color: #FFFFFF; background-color: #065F46; }
.theme-emerald .navbar-inverse .navbar-toggle { border-color: #10B981; }
.theme-emerald .navbar-inverse .navbar-toggle:hover,
.theme-emerald .navbar-inverse .navbar-toggle:focus { background-color: #065F46; }
.theme-emerald .navbar-inverse .navbar-toggle .icon-bar { background-color: #D1FAE5; }
.theme-emerald .navbar-inverse .navbar-collapse { border-color: #065F46; }
.theme-emerald .navbar-inverse .caret { border-top-color: #D1FAE5; }
.theme-emerald .dropdown-menu > li > a { color: #10231C; }
.theme-emerald .dropdown-menu > li > a:hover,
.theme-emerald .dropdown-menu > li > a:focus { color: #065F46; background-color: #ECFDF5; }
.theme-emerald .dropdown-menu > li.kopie > a { color: #047857; }
.theme-emerald .dropdown-menu > .disabled > a,
.theme-emerald .dropdown-menu > .disabled > a:hover { color: #9CA3AF; background-color: transparent; }
@media (max-width: 767px) {
  .theme-emerald .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #D1FAE5; }
  .theme-emerald .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover { color: #FFFFFF; background-color: #065F46; }
  .theme-emerald .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a { color: #6EE7B7; opacity: .6; }
}
.theme-emerald .mob-menu a.mob-home:hover { color: #A7F3D0; }
.theme-emerald .mob-group { color: #6EE7B7; }
.theme-emerald .mob-row { border-bottom-color: #065F46; }
.theme-emerald .mob-row a { background: #065F46; border-color: #047857; color: #FFFFFF; }
.theme-emerald .mob-row a:hover, .theme-emerald .mob-row a:active, .theme-emerald .mob-row a:focus { background: #059669; border-color: #059669; }

/* buttons */
.theme-emerald .btn-primary, .theme-emerald .btn-info { color: #FFFFFF; background-color: #059669; border-color: #047857; background-image: none; }
.theme-emerald .btn-primary:hover, .theme-emerald .btn-primary:focus, .theme-emerald .btn-primary:active, .theme-emerald .btn-primary.active,
.theme-emerald .btn-info:hover, .theme-emerald .btn-info:focus, .theme-emerald .btn-info:active, .theme-emerald .btn-info.active { color: #FFFFFF; background-color: #047857; border-color: #065F46; }
.theme-emerald .btn-primary[disabled], .theme-emerald .btn-primary[disabled]:hover,
.theme-emerald .btn-info[disabled], .theme-emerald .btn-info[disabled]:hover { background-color: #059669; border-color: #047857; }
.theme-emerald .btn-success { background-color: #16A34A; border-color: #15803D; background-image: none; }
.theme-emerald .btn-success:hover, .theme-emerald .btn-success:focus { background-color: #15803D; border-color: #166534; }
.theme-emerald .btn-default:hover, .theme-emerald .btn-default:focus { background-color: #ECFDF5; border-color: #A7F3D0; }
.theme-emerald .export-btn { border-color: #A7F3D0; }
.theme-emerald .export-btn:hover { background: #ECFDF5; border-color: #6EE7B7; }
.theme-emerald .bt-login { background-color: #059669; }
.theme-emerald .bt-login:hover, .theme-emerald .bt-login:focus { background-color: #047857; color: #FFFFFF; }

/* table headers everywhere (the old pages set th { background: #E8EAF6 }) */
.theme-emerald th { background-color: #D1FAE5; color: #065F46; }
.theme-emerald .table > thead > tr > th, .theme-emerald .table > tbody > tr > th { border-color: #CDEBDD; }

/* the Enter pages: caption bar (was maroon) */
.theme-emerald .caption { background-color: #064E3B; }

/* reports, home, Cancel / Add ... 2 pages: .rpt-* */
.theme-emerald .rpt-table th, .theme-emerald .rpt-table td { border-color: #D5E8DE; }
.theme-emerald .rpt-table thead th { background: #D1FAE5; color: #065F46; }
.theme-emerald .rpt-table tbody tr:nth-child(even) { background: #F7FCF9; }
.theme-emerald .rpt-table tbody tr:hover { background: #FEF9C3; }
.theme-emerald .rpt-table tbody tr.ob { background: #ECFDF5; }
.theme-emerald .rpt-table tfoot td { background: #ECFDF5; color: #065F46; }
.theme-emerald .rpt-filter { background: #EAF6F0; border-color: #CDEBDD; }
.theme-emerald .rpt-quick a { color: #047857; border-color: #A7F3D0; }
.theme-emerald .rpt-quick a:hover { background: #ECFDF5; }
.theme-emerald .rpt-quick a.on { background: #059669; border-color: #059669; color: #FFFFFF; }
.theme-emerald .rpt-card { border-color: #CDEBDD; }
.theme-emerald .rpt-card.hi { background: #ECFDF5; border-color: #6EE7B7; }
.theme-emerald .rpt-card.hi b { color: #065F46; }
.theme-emerald .rpt-empty { border-color: #A7F3D0; background: #F7FCF9; }

/* home page and Admin panel */
.theme-emerald .home-card { border-color: #CDEBDD; }
.theme-emerald .home-card-head { background: #EAF6F0; border-bottom-color: #CDEBDD; }
@media (max-width: 767px) {
  .theme-emerald .home-table thead th:nth-child(2), .theme-emerald .home-table tfoot td:nth-child(2) { background: #D1FAE5; }
}
.theme-emerald .home-toggle { border-color: #6EE7B7; }
.theme-emerald .home-toggle button { color: #047857; }
.theme-emerald .home-toggle button + button { border-left-color: #6EE7B7; }
.theme-emerald .home-toggle button.on { background: #059669; color: #FFFFFF; }
.theme-emerald .ap-card { border-color: #CDEBDD; }
.theme-emerald .ap-card.hi { background: #ECFDF5; border-color: #6EE7B7; }
.theme-emerald .ap-line { border-bottom-color: #DCEFE5; }
.theme-emerald .ap-btn { background: #059669; }
.theme-emerald .ap-btn:hover, .theme-emerald .ap-btn:focus { background: #047857; }
.theme-emerald .ap-mbtns button { border-color: #A7F3D0; color: #047857; }
.theme-emerald .ap-mbtns button.on { background: #059669; border-color: #059669; color: #FFFFFF; }
.theme-emerald .ap-chart { border-color: #CDEBDD; }

/* Cancel Receipts 2, Add Agent 2, Add Quality 2, Add Quality Price 2 */
.theme-emerald .cx-selbar { background: #064E3B; }
.theme-emerald .cx-table tbody tr.cx-gin td:first-child { border-left-color: #6EE7B7; }
.theme-emerald .cx-table tbody tr.cx-gstart td { border-top-color: #6EE7B7; }
.theme-emerald .ms-table td.nm a { color: #065F46; }
.theme-emerald .ms-link { color: #047857; }
.theme-emerald .ms-box .ms-facts, .theme-emerald .cx-box .cx-facts { background: #EAF6F0; border-color: #CDEBDD; }
.theme-emerald .pr-tabs a { color: #047857; border-color: #A7F3D0; }
.theme-emerald .pr-tabs a.on { background: #059669; border-color: #059669; color: #FFFFFF; }

/* Change Password */
.theme-emerald .pw-policy { background: #F7FCF9; border-color: #CDEBDD; }
