/* ==========================================================================
   AMK Attorney — portal theme
   Mirrors attorney-web (tailwind.config.js / app.css) and attorney-app
   (app_colors.dart / app_theme.dart): navy + brass-gold on warm cream,
   Cormorant Garamond for headings, Mulish for everything else.

   Loaded after style-amk.css. Only restyles — every class/id the template
   JS (script.js, DataTables, select2, modals) relies on is left in place.
   ========================================================================== */

:root {
    --navy-950: #081120;
    --navy-900: #0f1e34;
    --navy-800: #16233a;
    --navy-700: #213047;
    --navy-600: #2d3f60;
    --navy-500: #3f5680;
    --navy-400: #5f79a0;
    --navy-300: #94a6bf;
    --navy-200: #c2ccdb;
    --navy-100: #e2e7ee;
    --navy-50: #f3f5f8;

    --gold-700: #775434;
    --gold-600: #946d3c;
    --gold-500: #b0894c;
    --gold-400: #c49a52;
    --gold-300: #d3af6f;
    --gold-200: #e4cda0;
    --gold-100: #f2e7d0;
    --gold-50: #faf6ee;

    --cream: #f7f5f0;
    --cream-dark: #efeae0;
    --line: #e7e3da;

    --success: #1f7a4d;
    --success-bg: #e7f3ec;
    --danger: #b3261e;
    --danger-bg: #fbeae9;
    --warning: #9a7a12;
    --warning-bg: #fbf3de;
    --info: #3f5680;
    --info-bg: #f3f5f8;

    --font-serif: "Cormorant Garamond", Georgia, Cambria, serif;
    --font-sans: Mulish, ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 1px 2px rgba(15, 30, 52, .04), 0 12px 32px -12px rgba(15, 30, 52, .14);
    --shadow-pop: 0 2px 4px rgba(15, 30, 52, .06), 0 24px 48px -16px rgba(15, 30, 52, .28);

    --sidebar-w: 264px;
    --header-h: 70px;

    /* Bootstrap 5 variables (bootstrap.min.css reads these) */
    --bs-primary: #b0894c;
    --bs-primary-rgb: 176, 137, 76;
    --bs-secondary: #0f1e34;
    --bs-secondary-rgb: 15, 30, 52;
    --bs-success: #1f7a4d;
    --bs-success-rgb: 31, 122, 77;
    --bs-danger: #b3261e;
    --bs-danger-rgb: 179, 38, 30;
    --bs-info: #3f5680;
    --bs-info-rgb: 63, 86, 128;
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: #16233a;
    --bs-body-bg: #f7f5f0;
    --bs-link-color: #946d3c;
    --bs-link-hover-color: #775434;
    --bs-border-color: #e7e3da;

    /* template's own rgb hooks */
    --primary-rgb: 176, 137, 76;
    --secondary-rgb: 15, 30, 52;
    --success-rgb: 31, 122, 77;
    --danger-rgb: 179, 38, 30;
    --info-rgb: 63, 86, 128;
    --warning-rgb: 201, 162, 39;
}

/* ---------- Base ---------------------------------------------------------- */
html,
body {
    background: var(--cream) !important;
}

body {
    font-family: var(--font-sans) !important;
    color: var(--navy-800);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--navy-900);
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4,
.page-title h4,
.card-title,
.modal-title,
.custom-modal-header h4,
.custom-modal-header .page-title h4 {
    font-family: var(--font-serif) !important;
    font-weight: 600 !important;
    letter-spacing: -.005em;
}

a {
    color: var(--gold-600);
}

a:hover {
    color: var(--gold-700);
}

::selection {
    background: var(--gold-200);
    color: var(--navy-900);
}

:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* Brand loader */
#global-loader {
    background: var(--cream) !important;
}

#global-loader .whirly-loader:not(:required) {
    color: var(--gold-500) !important;
}

/* ---------- Header -------------------------------------------------------- */
.header {
    height: var(--header-h);
    background: rgba(255, 255, 255, .92) !important;
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.header .header-left {
    height: var(--header-h) !important;
    width: var(--sidebar-w);
    background: var(--navy-900) !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
    padding: 0 20px 0 22px;
}

.header .header-left .logo img,
.header .header-left .logo-white img {
    width: auto !important;
    height: 44px;
}

.header .header-left .logo-white {
    display: none !important;
}

.header .header-left .logo-small img {
    width: 38px !important;
    height: auto;
}

.header #toggle_btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08) !important;
    color: var(--gold-300) !important;
    border: 1px solid rgba(255, 255, 255, .12);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
}

.header #toggle_btn svg {
    color: var(--gold-300);
    stroke: var(--gold-300);
}

.header #toggle_btn:hover {
    background: var(--gold-500) !important;
}

.header #toggle_btn:hover svg {
    color: #fff;
    stroke: #fff;
}

.header .user-menu {
    height: var(--header-h);
    padding-right: 24px;
    align-items: center;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

.header .user-menu.nav > li.nav-item .nav-link,
.header .user-menu > li {
    height: auto;
}

/* page context on the left of the bar */
.header .amk-header-context {
    float: left;
    height: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 28px;
    line-height: 1.15;
}

.header .amk-header-context .amk-eyebrow {
    margin-bottom: 2px;
}

.header .amk-header-context .amk-greeting {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    color: var(--navy-900);
}

@media (max-width: 991.98px) {
    .header .amk-header-context {
        display: none;
    }
}

/* search pill */
.header .top-nav-search .searchinputs input,
.header .searchinputs input {
    border-radius: 999px !important;
    background: var(--cream) !important;
    border: 1px solid var(--line) !important;
    height: 40px;
    padding-left: 18px !important;
    font-size: 13.5px;
    color: var(--navy-900);
    width: 260px;
}

.header .top-nav-search .searchinputs input:focus {
    border-color: var(--gold-300) !important;
    box-shadow: 0 0 0 3px rgba(176, 137, 76, .15) !important;
    background: #fff !important;
}

.header .search-addon svg {
    color: var(--navy-300);
}

/* user chip */
.header .user-menu .userset {
    padding: 6px 8px 6px 6px !important;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.header .user-menu .userset:hover {
    border-color: var(--gold-300);
    box-shadow: 0 4px 14px -6px rgba(15, 30, 52, .25);
}

.header .user-menu .userset::after,
.header .main-drop.has-arrow > a::after,
.header .has-arrow .dropdown-toggle::after {
    display: none !important;
}

.header .user-info {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.header .user-info .user-letter,
.amk-avatar {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex: 0 0 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--navy-900) !important;
    color: var(--gold-300) !important;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 16px;
    margin: 0 !important;
    border: 2px solid var(--gold-200);
}

.header .user-info .user-letter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header .user-info .user-detail {
    display: flex !important;
    flex-direction: column;
    line-height: 1.15;
    padding-right: 6px;
}

.header .user-info .user-name {
    font-weight: 700;
    color: var(--navy-900) !important;
    font-size: 13.5px;
}

.header .user-info .user-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.header .dropdown-menu {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-pop) !important;
    padding: 8px !important;
    min-width: 220px;
}

.header .menu-drop-user .profilename {
    padding: 0 !important;
}

.header .menu-drop-user .amk-menu-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.header .menu-drop-user .amk-menu-head strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--navy-900);
}

.header .menu-drop-user .amk-menu-head span {
    font-size: 12px;
    color: var(--navy-400);
}

.header .dropdown-item,
.dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 9px 12px !important;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy-700) !important;
    display: flex;
    align-items: center;
}

.header .dropdown-item svg {
    width: 16px;
    height: 16px;
    color: var(--navy-400);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--gold-50) !important;
    color: var(--gold-700) !important;
}

.header .dropdown-item.logout {
    color: var(--danger) !important;
}

.header .dropdown-item.logout svg {
    color: var(--danger);
}

/* mobile hamburger */
.mobile_btn .bar-icon span {
    background-color: var(--navy-900) !important;
}

@media (max-width: 991.98px) {
    .header .header-left {
        width: 100% !important;
        background: transparent !important;
        border: 0 !important;
        justify-content: center;
    }

    .header .header-left .logo-normal {
        display: none !important;
    }

    .header .header-left .logo-small {
        display: inline-block !important;
    }

    .header .header-left .logo-small img {
        content: url("/assets/img/brand/mark-navy.png");
        width: 46px !important;
    }

    .header .user-menu {
        display: none !important;
    }

    .header .mobile-user-menu > a {
        color: var(--navy-900) !important;
    }
}

/* ---------- Sidebar ------------------------------------------------------- */
.sidebar {
    background: var(--navy-900) !important;
    border-right: 0 !important;
    width: var(--sidebar-w);
    top: var(--header-h) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .04);
}

.sidebar .slimScrollDiv,
.sidebar .sidebar-inner {
    background: transparent !important;
}

.sidebar .sidebar-menu {
    padding: 18px 14px 32px !important;
}

.sidebar .amk-nav-label {
    display: block;
    padding: 18px 12px 8px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-400);
    opacity: .85;
}

.sidebar .amk-nav-label:first-child {
    padding-top: 4px;
}

.sidebar .sidebar-menu > ul > li.submenu-open > ul {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* top-level links */
.sidebar .sidebar-menu > ul > li.submenu-open ul li a,
.sidebar .sidebar-menu > ul li .submenu > a,
body.mini-sidebar .sidebar .sidebar-menu > ul > li.submenu-open ul li a {
    color: rgba(255, 255, 255, .72) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    margin-bottom: 2px;
    transition: background .2s, color .2s;
}

.sidebar .sidebar-menu > ul > li.submenu-open ul li a span,
.sidebar .sidebar-menu > ul li .submenu > a span {
    color: inherit !important;
    font-size: 14px !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open ul li a svg,
.sidebar .sidebar-menu > ul li svg {
    color: var(--navy-300) !important;
    width: 18px;
    height: 18px;
    stroke-width: 1.8;
}

.sidebar .sidebar-menu > ul > li.submenu-open ul li a:hover,
.sidebar .sidebar-menu > ul li .submenu > a:hover {
    background: rgba(255, 255, 255, .06) !important;
    color: #fff !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open ul li a:hover svg {
    color: var(--gold-300) !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open ul li a::after,
.sidebar .sidebar-menu > ul > li.submenu-open ul li a:hover::after {
    display: none !important;
}

/* active */
.sidebar .sidebar-menu > ul > li.submenu-open ul > li.active > a,
.sidebar .sidebar-menu > ul li .submenu > a.active,
.sidebar .sidebar-menu > ul li .submenu > a.subdrop {
    background: linear-gradient(90deg, rgba(176, 137, 76, .22), rgba(176, 137, 76, .06)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 var(--gold-500);
}

.sidebar .sidebar-menu > ul > li.submenu-open ul > li.active > a svg,
.sidebar .sidebar-menu > ul li .submenu > a.active svg,
.sidebar .sidebar-menu > ul li .submenu > a.subdrop svg {
    color: var(--gold-300) !important;
}

/* sub-menu */
.sidebar .sidebar-menu > ul > li.submenu-open .submenu ul {
    padding: 4px 0 8px 22px !important;
    margin-left: 9px;
    border-left: 1px solid rgba(255, 255, 255, .08) !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open .submenu ul li a {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 7px 12px !important;
    color: rgba(255, 255, 255, .6) !important;
    box-shadow: none !important;
    background: transparent !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open .submenu ul li a:hover {
    color: #fff !important;
}

.sidebar .sidebar-menu > ul > li.submenu-open .submenu ul li a.active {
    color: var(--gold-300) !important;
    font-weight: 700 !important;
}

.sidebar .menu-arrow::before {
    color: var(--navy-300) !important;
    border-color: var(--navy-300) !important;
}

.sidebar .subdrop .menu-arrow::before,
.sidebar .active .menu-arrow::before {
    color: var(--gold-300) !important;
    border-color: var(--gold-300) !important;
}

/* footer card in sidebar */
.sidebar .amk-sidebar-foot {
    margin: 22px 6px 0;
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(176, 137, 76, .2), rgba(176, 137, 76, .04));
    border: 1px solid rgba(176, 137, 76, .25);
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    line-height: 1.5;
}

.sidebar .amk-sidebar-foot strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 18px;
    color: #fff;
    margin-bottom: 2px;
}

/* mini sidebar */
@media (min-width: 992px) {
    .mini-sidebar .header-left {
        width: 80px !important;
    }

    .mini-sidebar .sidebar {
        width: 80px !important;
    }

    .mini-sidebar .sidebar .amk-nav-label,
    .mini-sidebar .sidebar .amk-sidebar-foot {
        display: none;
    }

    .mini-sidebar.expand-menu .sidebar,
    .mini-sidebar.expand-menu .header-left {
        width: var(--sidebar-w) !important;
    }

    .mini-sidebar.expand-menu .sidebar .amk-nav-label,
    .mini-sidebar.expand-menu .sidebar .amk-sidebar-foot {
        display: block;
    }

    .page-wrapper {
        margin-left: var(--sidebar-w) !important;
    }

    .mini-sidebar .page-wrapper {
        margin-left: 80px !important;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        top: var(--header-h) !important;
        margin-left: calc(-1 * var(--sidebar-w));
    }

    .slide-nav .sidebar {
        margin-left: 0;
    }
}

.sidebar-overlay.opened {
    background: rgba(8, 17, 32, .55) !important;
}

/* ---------- Page shell ---------------------------------------------------- */
.page-wrapper {
    padding-top: var(--header-h) !important;
    background: var(--cream);
}

.page-wrapper .content {
    padding: 28px 28px 40px !important;
}

@media (max-width: 575.98px) {
    .page-wrapper .content {
        padding: 18px 16px 32px !important;
    }
}

.page-header {
    margin-bottom: 22px !important;
    align-items: flex-end !important;
    gap: 12px;
}

.page-header .page-title h4,
.page-title h4 {
    font-size: 30px !important;
    line-height: 1.1;
    color: var(--navy-900) !important;
    margin-bottom: 4px !important;
}

.page-header .page-title h6,
.page-title h6 {
    font-family: var(--font-sans);
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--navy-400) !important;
    margin: 0;
}

.page-header .page-title::before {
    content: "AMK Attorney";
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 6px;
}

/* "eyebrow" helper, same as web .eyebrow */
.amk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-600);
}

.amk-eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold-500);
}

/* table-top-head icon row */
.table-top-head li a {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.table-top-head li a:hover {
    border-color: var(--gold-300) !important;
    background: var(--gold-50) !important;
}

.table-top-head li a svg {
    color: var(--navy-600) !important;
    width: 16px;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
    font-family: var(--font-sans);
    font-weight: 700 !important;
    letter-spacing: .01em;
    border-radius: var(--radius-sm) !important;
    transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s !important;
}

.btn-primary,
.btn.btn-primary,
.btn-submit,
.btn.btn-submit,
.btn-added,
.page-header .btn-added,
.btn-login,
.btn-filters,
.btn-searchset.btn-primary,
.btn-warning {
    background: var(--gold-500) !important;
    border: 1px solid var(--gold-500) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px -8px rgba(176, 137, 76, .7) !important;
}

.btn-primary:hover,
.btn.btn-primary:hover,
.btn-submit:hover,
.btn.btn-submit:hover,
.btn-added:hover,
.page-header .btn-added:hover,
.btn-login:hover,
.btn-filters:hover,
.btn-warning:hover {
    background: var(--gold-600) !important;
    border-color: var(--gold-600) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.page-header .btn-added {
    padding: 10px 18px !important;
    font-size: 13.5px !important;
}

.page-header .btn-added svg {
    width: 16px;
    height: 16px;
}

.btn-secondary,
.btn.btn-secondary,
.btn-dark,
.btn-info {
    background: var(--navy-900) !important;
    border: 1px solid var(--navy-900) !important;
    color: #fff !important;
}

.btn-secondary:hover,
.btn.btn-secondary:hover,
.btn-dark:hover,
.btn-info:hover {
    background: var(--navy-800) !important;
    border-color: var(--navy-800) !important;
    color: #fff !important;
}

.btn-cancel,
.btn.btn-cancel,
.btn-light,
.btn-outline-primary,
.btn-outline-secondary {
    background: #fff !important;
    border: 1px solid var(--navy-200) !important;
    color: var(--navy-900) !important;
    box-shadow: none !important;
}

.btn-cancel:hover,
.btn.btn-cancel:hover,
.btn-light:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    background: var(--navy-900) !important;
    border-color: var(--navy-900) !important;
    color: #fff !important;
}

.btn-success {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
}

.btn-danger,
.btn.btn-danger {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: #fff !important;
}

.btn-danger:hover {
    background: #921f18 !important;
}

.btn-outline-danger {
    color: var(--danger) !important;
    border-color: rgba(179, 38, 30, .35) !important;
    background: #fff !important;
}

.btn-outline-danger:hover {
    background: var(--danger) !important;
    color: #fff !important;
}

.btn-link {
    color: var(--gold-600) !important;
}

/* ---------- Cards --------------------------------------------------------- */
.card {
    background: #fff !important;
    border: 1px solid rgba(15, 30, 52, .07) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-card) !important;
    margin-bottom: 24px;
}

.card .card-header {
    background: transparent !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 18px 22px !important;
}

.card .card-header .card-title {
    font-size: 22px !important;
    color: var(--navy-900) !important;
    margin: 0;
}

.card .card-body {
    padding: 22px !important;
}

.card.table-list-card .card-body {
    padding: 0 !important;
}

.card.table-list-card .table-top {
    padding: 18px 22px 0 !important;
    margin-bottom: 14px !important;
}

/* filter card inside table card */
#filter_inputs.card,
.card #filter_inputs {
    box-shadow: none !important;
    background: var(--cream) !important;
    border: 1px dashed var(--line) !important;
    margin: 0 22px 18px !important;
}

/* ---------- Tables -------------------------------------------------------- */
.table {
    --bs-table-bg: transparent;
    color: var(--navy-800);
    margin-bottom: 0 !important;
}

.table thead tr th,
.table thead th {
    background: var(--cream) !important;
    color: var(--navy-500) !important;
    font-family: var(--font-sans);
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-top: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 13px 16px !important;
    white-space: nowrap;
}

.table tbody tr td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f0ece4 !important;
    color: var(--navy-800) !important;
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr:hover td {
    background: var(--gold-50) !important;
}

.table tbody tr td a {
    color: var(--navy-900);
    font-weight: 600;
}

.table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.table-responsive {
    border-radius: 0 0 var(--radius) var(--radius);
}

/* action buttons */
.edit-delete-action a,
.action-table-data .edit-delete-action a {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    border: 1px solid var(--line) !important;
    background: #fff;
    transition: all .2s;
}

.edit-delete-action a svg {
    width: 15px !important;
    height: 15px !important;
    color: var(--navy-600) !important;
}

.edit-delete-action a:hover {
    border-color: var(--gold-300) !important;
    background: var(--gold-50) !important;
}

.edit-delete-action a:hover svg {
    color: var(--gold-700) !important;
}

.edit-delete-action a:has(.feather-trash-2):hover {
    border-color: rgba(179, 38, 30, .35) !important;
    background: var(--danger-bg) !important;
}

.edit-delete-action a:has(.feather-trash-2):hover svg {
    color: var(--danger) !important;
}

/* DataTables chrome */
.dataTables_filter input,
.search-set .search-input input[type=search] {
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    background: var(--cream) !important;
    height: 40px !important;
    padding-left: 38px !important;
    color: var(--navy-900) !important;
    min-width: 240px;
}

.dataTables_filter input:focus {
    border-color: var(--gold-300) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(176, 137, 76, .15) !important;
}

.search-set .btn-searchset {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

.search-set .btn-searchset svg {
    color: var(--navy-400) !important;
}

.btn-filter {
    background: var(--navy-900) !important;
    border-radius: 10px !important;
}

.btn-filter.setclose {
    background: var(--danger) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    padding: 16px 22px !important;
    color: var(--navy-400) !important;
    font-size: 13px;
}

.dataTables_length select {
    border-radius: 8px !important;
    border: 1px solid var(--line) !important;
}

.dataTables_paginate .pagination li a,
.dataTables_paginate .paginate_button a,
.pagination .page-link {
    border-radius: 9px !important;
    border: 1px solid var(--line) !important;
    color: var(--navy-700) !important;
    background: #fff !important;
    min-width: 34px;
    height: 34px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
    font-weight: 700;
}

.dataTables_paginate .pagination li.active a,
.dataTables_paginate .paginate_button.active a,
.pagination .page-item.active .page-link {
    background: var(--navy-900) !important;
    border-color: var(--navy-900) !important;
    color: var(--gold-200) !important;
}

/* custom checkboxes */
.checkboxs .checkmarks {
    border-radius: 5px !important;
    border-color: var(--navy-200) !important;
}

.checkboxs input:checked ~ .checkmarks {
    background: var(--gold-500) !important;
    border-color: var(--gold-500) !important;
}

.form-check-input:checked {
    background-color: var(--gold-500) !important;
    border-color: var(--gold-500) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(176, 137, 76, .2) !important;
    border-color: var(--gold-300) !important;
}

.form-switch .form-check-input:checked {
    background-color: var(--success) !important;
    border-color: var(--success) !important;
}

/* ---------- Forms --------------------------------------------------------- */
.form-label,
label,
.input-blocks label {
    font-family: var(--font-sans);
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--navy-800) !important;
    margin-bottom: 7px;
}

.form-control,
.form-select,
.input-blocks input[type=text],
.input-blocks input[type=email],
.input-blocks input[type=password],
.input-blocks input[type=number],
.input-blocks input[type=date],
.input-blocks textarea,
.input-blocks select,
textarea,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #fff !important;
    color: var(--navy-900) !important;
    font-size: 14px !important;
    min-height: 44px;
    box-shadow: none !important;
    transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder,
textarea::placeholder {
    color: var(--navy-300) !important;
}

.form-control:focus,
.form-select:focus,
.input-blocks input:focus,
.input-blocks textarea:focus,
textarea:focus,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: var(--gold-300) !important;
    box-shadow: 0 0 0 3px rgba(176, 137, 76, .15) !important;
    outline: 0 !important;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--cream) !important;
}

.form-control.is-invalid {
    border-color: var(--danger) !important;
}

.invalid-feedback,
.text-danger {
    color: var(--danger) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 42px !important;
    color: var(--navy-900) !important;
    padding-left: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px !important;
}

.select2-dropdown {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-pop);
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--gold-500) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background: var(--gold-50) !important;
    color: var(--gold-700) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--navy-900) !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 999px !important;
}

/* ---------- Modals -------------------------------------------------------- */
.modal-backdrop.show {
    background: var(--navy-950);
    opacity: .6;
}

.modal-content {
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 32px 80px -24px rgba(8, 17, 32, .55) !important;
    overflow: hidden;
}

.modal-header,
.custom-modal-header {
    background: var(--cream) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 18px 24px !important;
    position: relative;
}

.modal-header::after,
.custom-modal-header::after {
    content: "";
    position: absolute;
    left: 24px;
    bottom: -1px;
    width: 48px;
    height: 2px;
    background: var(--gold-500);
}

.modal-header .page-title h4,
.custom-modal-header .page-title h4,
.modal-title {
    font-size: 24px !important;
    color: var(--navy-900) !important;
}

.modal-header .close,
.custom-modal-header .close,
.modal-header .btn-close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--line) !important;
    color: var(--navy-700) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
    box-shadow: none !important;
}

.modal-header .close:hover,
.custom-modal-header .close:hover {
    background: var(--navy-900) !important;
    color: #fff !important;
}

.modal-header .close span {
    color: inherit !important;
}

.modal-body,
.custom-modal-body {
    padding: 22px 24px !important;
}

.modal-footer,
.modal-footer-btn {
    border-top: 0;
    gap: 8px;
}

/* ---------- Badges & status ------------------------------------------------ */
.badge {
    font-family: var(--font-sans);
    font-weight: 700 !important;
    font-size: 11.5px !important;
    letter-spacing: .02em;
    border-radius: 999px !important;
    padding: 5px 11px !important;
}

.badge.bg-success, .badge-linesuccess, .badges.status-badge, .badge-success, .bg-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border: 1px solid rgba(31, 122, 77, .2) !important;
}

.badge.bg-danger, .badge-linedanger, .badge-danger, .bg-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(179, 38, 30, .2) !important;
}

.badge.bg-warning, .badge-linewarning, .badge-warning, .bg-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(201, 162, 39, .3) !important;
}

.badge.bg-info, .badge-lineinfo, .badge-info, .bg-info,
.badge.bg-primary, .badge-lineprimary, .badge-primary, .bg-primary {
    background: var(--gold-50) !important;
    color: var(--gold-700) !important;
    border: 1px solid var(--gold-200) !important;
}

.badge.bg-secondary, .badge-secondary, .badge.bg-dark {
    background: var(--navy-50) !important;
    color: var(--navy-700) !important;
    border: 1px solid var(--navy-100) !important;
}

/* progress */
.progress {
    background: var(--cream-dark) !important;
    border-radius: 999px !important;
    height: 8px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300)) !important;
    border-radius: 999px !important;
}

.progress-bar.bg-success {
    background: var(--success) !important;
    border: 0 !important;
}

/* alerts */
.alert {
    border-radius: var(--radius-sm) !important;
    border-width: 1px !important;
    font-weight: 600;
}

.alert-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: rgba(31, 122, 77, .25) !important;
}

.alert-danger {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
    border-color: rgba(179, 38, 30, .25) !important;
}

.alert-warning {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
    border-color: rgba(201, 162, 39, .3) !important;
}

.alert-info,
.alert-primary {
    background: var(--gold-50) !important;
    color: var(--gold-700) !important;
    border-color: var(--gold-200) !important;
}

/* ---------- Accordions / tabs (todo & forms) ------------------------------ */
.accordion-item {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    margin-bottom: 12px;
    background: #fff;
}

.accordion-button {
    font-family: var(--font-sans);
    font-weight: 700 !important;
    color: var(--navy-900) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--gold-50) !important;
    color: var(--gold-700) !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(176, 137, 76, .15) !important;
}

.nav-tabs {
    border-bottom: 1px solid var(--line) !important;
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
    font-weight: 700;
    color: var(--navy-400) !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
}

.nav-tabs .nav-link.active,
.nav-pills .nav-link.active,
.nav-tabs .nav-link:hover {
    color: var(--navy-900) !important;
    border-bottom-color: var(--gold-500) !important;
}

.todo-tab .nav-link.active,
.todo-tab a.active {
    color: var(--navy-900) !important;
}

.todo-inbox,
.todo-wrapper-list {
    border-radius: var(--radius) !important;
    border-color: var(--line) !important;
}

/* ---------- Dashboard ----------------------------------------------------- */
.amk-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 30px 32px;
    margin-bottom: 26px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(176, 137, 76, .35) 0%, rgba(176, 137, 76, 0) 55%),
        linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
    color: #fff;
    box-shadow: 0 24px 48px -24px rgba(8, 17, 32, .6);
}

.amk-hero::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 280px;
    height: 210px;
    background: url("/assets/img/brand/mark-gold.png") no-repeat center / contain;
    opacity: .1;
    pointer-events: none;
}

.amk-hero .amk-eyebrow {
    color: var(--gold-300);
}

.amk-hero .amk-eyebrow::before {
    background: var(--gold-300);
}

.amk-hero h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    color: #fff !important;
    margin: 10px 0 6px;
    line-height: 1.08;
}

.amk-hero p {
    color: rgba(255, 255, 255, .72);
    margin: 0;
    max-width: 58ch;
}

.amk-hero .amk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.btn-amk-ghost {
    border: 1px solid rgba(255, 255, 255, .35) !important;
    color: #fff !important;
    background: transparent !important;
    padding: 10px 18px !important;
}

.btn-amk-ghost:hover {
    background: #fff !important;
    color: var(--navy-900) !important;
}

.btn-amk-gold {
    background: var(--gold-500) !important;
    color: #fff !important;
    border: 1px solid var(--gold-500) !important;
    padding: 10px 18px !important;
}

.btn-amk-gold:hover {
    background: var(--gold-600) !important;
    color: #fff !important;
}

/* stat widgets (template .dash-widget re-skinned) */
.dash-widget {
    background: #fff !important;
    border: 1px solid rgba(15, 30, 52, .07) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-card) !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.dash-widget::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gold-500);
}

.dash-widget:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop) !important;
    border-color: var(--gold-200) !important;
}

.dash-widget .dash-widgetimg span {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: var(--navy-900) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--gold-300);
}

.dash-widget .dash-widgetimg span svg {
    width: 22px;
    height: 22px;
    color: var(--gold-300);
}

.dash-widget .dash-widgetcontent h5 {
    font-family: var(--font-serif) !important;
    font-size: 34px !important;
    font-weight: 700 !important;
    color: var(--navy-900) !important;
    line-height: 1;
    margin-bottom: 4px !important;
}

.dash-widget .dash-widgetcontent h6 {
    font-size: 11.5px !important;
    font-weight: 800 !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy-400) !important;
    margin: 0;
}

.productimgname .product-img img {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--gold-100);
}

/* ---------- Auth pages ---------------------------------------------------- */
body.account-page {
    background: var(--cream) !important;
}

.amk-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.amk-auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(176, 137, 76, .32) 0%, rgba(176, 137, 76, 0) 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
    color: #fff;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.amk-auth-brand::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 520px;
    height: 390px;
    background: url("/assets/img/brand/mark-gold.png") no-repeat center / contain;
    opacity: .07;
}

.amk-auth-brand .amk-auth-logo {
    height: 64px !important;
    width: auto !important;
    max-width: none !important;
    align-self: flex-start;
    object-fit: contain;
}

.amk-auth-brand h1 {
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.05;
    color: #fff !important;
    margin: 18px 0 16px;
    max-width: 14ch;
}

.amk-auth-brand h1 em {
    font-style: italic;
    color: var(--gold-300);
}

.amk-auth-brand p {
    color: rgba(255, 255, 255, .7);
    max-width: 44ch;
    font-size: 15.5px;
    line-height: 1.7;
}

.amk-auth-brand .amk-eyebrow {
    color: var(--gold-300);
}

.amk-auth-brand .amk-eyebrow::before {
    background: var(--gold-300);
}

.amk-auth-points {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.amk-auth-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.amk-auth-points li i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(211, 175, 111, .4);
    color: var(--gold-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.amk-auth-foot {
    color: rgba(255, 255, 255, .45);
    font-size: 12.5px;
    position: relative;
    z-index: 1;
}

.amk-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.amk-auth-card {
    width: 100%;
    max-width: 420px;
}

.amk-auth-card .amk-auth-mobile-logo {
    display: none;
    height: 56px !important;
    width: auto !important;
    margin-bottom: 26px;
}

.amk-auth-card h2 {
    font-size: 38px;
    margin: 10px 0 6px;
}

.amk-auth-card .amk-auth-sub {
    color: var(--navy-400);
    margin-bottom: 28px;
}

.amk-auth-card .amk-field {
    position: relative;
    margin-bottom: 18px;
}

.amk-auth-card .amk-field .form-control {
    height: 50px;
    padding-left: 44px !important;
}

.amk-auth-card .amk-field > i {
    position: absolute;
    left: 16px;
    top: 45px;
    color: var(--navy-300);
    font-size: 14px;
    pointer-events: none;
}

.amk-auth-card .amk-field .toggle-password {
    position: absolute;
    right: 14px;
    top: 45px;
    color: var(--navy-400);
    cursor: pointer;
}

.amk-auth-card .btn-login {
    width: 100%;
    height: 50px;
    font-size: 15px !important;
}

.amk-auth-card .amk-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 22px;
    font-size: 13.5px;
}

.amk-auth-card .amk-auth-row label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600 !important;
    color: var(--navy-600) !important;
}

.amk-auth-card .amk-auth-row a {
    font-weight: 700;
}

.amk-auth-card .amk-auth-help {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--navy-400);
    text-align: center;
}

@media (max-width: 991.98px) {
    .amk-auth {
        grid-template-columns: 1fr;
    }

    .amk-auth-brand {
        display: none;
    }

    .amk-auth-card .amk-auth-mobile-logo {
        display: block;
    }
}

/* ---------- Misc ---------------------------------------------------------- */
.toast-success {
    background-color: var(--success) !important;
}

.toast-error {
    background-color: var(--danger) !important;
}

.toast-info {
    background-color: var(--navy-900) !important;
}

.toast-warning {
    background-color: var(--gold-600) !important;
}

.swal2-popup {
    border-radius: 16px !important;
    font-family: var(--font-sans) !important;
}

.swal2-title {
    font-family: var(--font-serif) !important;
    color: var(--navy-900) !important;
}

.swal2-styled.swal2-confirm {
    background: var(--gold-500) !important;
}

.text-primary {
    color: var(--gold-600) !important;
}

.text-muted {
    color: var(--navy-400) !important;
}

hr {
    border-color: var(--line);
    opacity: 1;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-200);
    border-radius: 999px;
    border: 2px solid var(--cream);
}

.sidebar ::-webkit-scrollbar-thumb {
    background: var(--navy-600);
    border-color: var(--navy-900);
}

/* Hide the template's theme customiser — the brand theme is fixed. */
.sidebar-settings,
.customizer-links {
    display: none !important;
}

/* ---------- Todo / notes layout ------------------------------------------- */
.notes-dash,
.section-bulk-widget .notes-dash {
    background: #fff !important;
    border: 1px solid rgba(15, 30, 52, .07) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-card) !important;
}

.notes-dash .notes-top-head h5 {
    font-family: var(--font-serif) !important;
    font-size: 22px !important;
    color: var(--navy-900) !important;
}

.notes-dash .notes-top-head h5 svg {
    color: var(--gold-500) !important;
}

.notes-dash .nav-pills .nav-link,
.notes-dash .todo-inbox .nav-link,
.todo-inbox .nav-link.todo-tab {
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    color: var(--navy-600) !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.notes-dash .nav-pills .nav-link svg,
.todo-inbox .nav-link svg {
    width: 16px;
    color: var(--navy-300);
}

.notes-dash .nav-pills .nav-link.active,
.todo-inbox .nav-link.todo-tab.active,
.notes-dash .nav-pills .nav-link:hover {
    background: var(--navy-900) !important;
    color: #fff !important;
    border: 0 !important;
}

.notes-dash .nav-pills .nav-link.active svg,
.todo-inbox .nav-link.todo-tab.active svg {
    color: var(--gold-300) !important;
}

.content-submenu-tag h6 {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy-400) !important;
}

.todo-card,
.category-item {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    background: #fff !important;
    box-shadow: var(--shadow-card);
}

.todo-card {
    border-left: 3px solid var(--gold-500) !important;
}

.todo-widget,
.todo-wrapper-list,
.notes-card,
.card-notes,
.todo-inbox-check {
    border-radius: var(--radius) !important;
    border-color: var(--line) !important;
}

.notes-tog {
    background: var(--navy-900) !important;
    color: var(--gold-300) !important;
}

/* ---------- File manager (client documents) ------------------------------- */
.bg-light-orange,
.detail > a.bg {
    background: linear-gradient(160deg, var(--gold-50), var(--cream-dark)) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0 !important;
    transition: background .25s;
}

.bg-light-orange img[src*="folder.svg"],
.detail > a.bg img[src*="folder.svg"] {
    content: url("/assets/img/brand/folder.svg");
    width: 44px;
    height: 44px;
}

.detail {
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid rgba(15, 30, 52, .07);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}

.detail:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
}

.detail:hover > a.bg {
    background: linear-gradient(160deg, var(--gold-100), var(--gold-50)) !important;
}

.detail .info {
    padding: 12px 14px !important;
}

.detail .info h6,
.detail .info h6 a {
    font-weight: 700;
    color: var(--navy-900) !important;
    margin: 0;
}

.all-files,
.overview {
    border-radius: var(--radius) !important;
}

.overview h4,
.all-files h4 {
    font-family: var(--font-serif) !important;
    font-size: 24px !important;
}

.icon-select .select2-container--default .select2-selection--single {
    padding-left: 22px;
}

/* sort / icon selects: keep the leading icon clear of the value */
.form-sort .select2-container--default .select2-selection--single .select2-selection__rendered,
.icon-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 32px !important;
}

/* ---------- Contracts ----------------------------------------------------- */
.amk-template-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(15, 30, 52, .07);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.amk-template-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
    border-color: var(--gold-200);
}

.amk-template-card h5 {
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 600;
    margin: 0 0 4px;
}

.amk-template-card p {
    color: var(--navy-400);
    font-size: 13.5px;
    margin: 0;
}

.amk-template-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--navy-900);
    color: var(--gold-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amk-template-icon svg {
    width: 22px;
    height: 22px;
}

.amk-template-count {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy-400);
}

.amk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.amk-chips a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--navy-600);
    background: #fff;
}

.amk-chips a.active,
.amk-chips a:hover {
    background: var(--navy-900);
    border-color: var(--navy-900);
    color: var(--gold-200);
}

.amk-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--navy-400);
}

.amk-empty svg {
    width: 36px;
    height: 36px;
    color: var(--gold-500);
    margin-bottom: 10px;
}

.amk-empty h5 {
    font-family: var(--font-serif);
    font-size: 22px;
}

.amk-step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-300);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.amk-subtle {
    font-size: 12.5px;
    color: var(--navy-400);
}

.amk-client-fill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-600);
}

.amk-client-fill .form-select {
    min-width: 230px;
    min-height: 38px;
    font-size: 13px !important;
}

.form-text {
    color: var(--navy-400);
    font-size: 12px;
}

.input-group-text {
    background: var(--cream) !important;
    border-color: var(--line) !important;
    color: var(--navy-700) !important;
    font-weight: 800;
    font-size: 12.5px;
}

.amk-sticky {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.amk-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: grid;
    gap: 10px;
    font-size: 13px;
    color: var(--navy-600);
}

.amk-checklist li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.amk-checklist svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--gold-500);
    margin-top: 2px;
}

.amk-doc-card .card-body,
.amk-doc-frame {
    padding: 0 !important;
}

.amk-doc-frame {
    background: #e9e6df;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}

.amk-doc-frame iframe {
    display: block;
    width: 100%;
    height: 1100px;
    border: 0;
}

.amk-action {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy-900);
    transition: border-color .2s, background .2s, transform .2s;
}

.amk-action:hover {
    border-color: var(--gold-300);
    background: var(--gold-50);
    color: var(--navy-900);
    transform: translateY(-1px);
}

.amk-action strong {
    display: block;
    font-size: 14px;
}

.amk-action small {
    display: block;
    color: var(--navy-400);
    font-size: 12px;
    line-height: 1.4;
}

.amk-action-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--navy-900);
    color: var(--gold-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.amk-action-icon svg {
    width: 18px;
    height: 18px;
}

.amk-missing {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--navy-600);
}

.amk-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

.amk-meta dt {
    color: var(--navy-400);
    font-weight: 700;
}

.amk-meta dd {
    margin: 0;
    color: var(--navy-900);
    font-weight: 600;
}

/* ---------- Contract design picker ---------------------------------------- */
.amk-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.amk-style-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, background .2s;
    margin: 0 !important;
}

.amk-style-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amk-style-option strong {
    font-size: 13px;
    color: var(--navy-900);
}

.amk-style-option small {
    font-size: 11px;
    line-height: 1.35;
    color: var(--navy-400);
    font-weight: 500;
}

.amk-style-option:hover {
    border-color: var(--gold-300);
}

.amk-style-option.is-active {
    border-color: var(--gold-500);
    background: var(--gold-50);
    box-shadow: 0 0 0 2px rgba(176, 137, 76, .2);
}

/* tiny page thumbnails hinting at each style */
.amk-style-swatch {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 34px;
    padding: 6px 8px;
    margin-bottom: 4px;
    border-radius: 5px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.amk-style-swatch i {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #9aa3ad;
}

.amk-style-swatch i:first-child {
    width: 55%;
    margin: 0 auto 2px;
    background: #444;
}

.amk-style-classic i { background: #222; }
.amk-style-modern i { background: #6b7280; height: 2.5px; }
.amk-style-amk { background: var(--gold-50); border-color: var(--gold-200); }
.amk-style-amk i { background: var(--navy-700); }
.amk-style-amk i:first-child { background: var(--gold-500); }
.amk-style-compact { gap: 2px; padding: 5px 6px; }
.amk-style-compact i { height: 2px; }
.amk-style-large i { height: 5px; }

.amk-design-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
    padding: 9px 12px;
    border: 1px dashed var(--navy-200);
    border-radius: 10px;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: var(--navy-700);
}

.amk-design-toggle:hover {
    border-color: var(--gold-400);
    color: var(--gold-700);
}

/* ---------- Contract installments ----------------------------------------- */
.amk-installments {
    display: grid;
    gap: 8px;
}

.amk-installment-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1.2fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.amk-installment-no {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-300);
    font-family: var(--font-serif);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .amk-installment-row {
        grid-template-columns: 28px 1fr auto;
    }

    .amk-installment-row > input[type=date] {
        grid-column: 2 / 3;
    }
}

/* ---------- Contract approvals ------------------------------------------- */
.amk-approval { border-left: 4px solid var(--navy-200) !important; }
.amk-approval.is-pending { border-left-color: var(--gold-500) !important; }
.amk-approval.is-approved { border-left-color: var(--success) !important; }
.amk-approval.is-changes { border-left-color: var(--danger) !important; }

.amk-approval-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--navy-50);
    color: var(--navy-700);
}
.is-pending .amk-approval-badge { background: var(--gold-50); color: var(--gold-700); }
.is-approved .amk-approval-badge { background: var(--success-bg); color: var(--success); }
.is-changes .amk-approval-badge { background: var(--danger-bg); color: var(--danger); }

.amk-approval-text {
    font-size: 13px;
    color: var(--navy-600);
    margin: 0;
}

.amk-approval-text svg { color: var(--gold-600); margin-right: 4px; vertical-align: -2px; }

.amk-approval-note {
    background: var(--danger-bg);
    border: 1px solid rgba(179, 38, 30, .2);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--navy-800);
}

.amk-approval-note strong { color: var(--danger); display: block; margin-bottom: 4px; }

.amk-action.is-locked {
    cursor: not-allowed;
    background: var(--cream);
    opacity: .85;
}

.amk-action.is-locked:hover { transform: none; border-color: var(--line); background: var(--cream); }

.amk-chip-count,
.amk-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    border-radius: 999px;
    background: var(--gold-500);
    color: #fff !important;
    font-size: 10.5px;
    font-weight: 800;
}

/* ---------- Contract signed copy & payment schedule ---------------------- */
.amk-signed { border-left: 4px solid var(--navy-200) !important; }
.amk-signed.is-executed { border-left-color: var(--success) !important; }
.amk-signed.is-executed .amk-approval-badge { background: var(--success-bg); color: var(--success); }

.amk-schedule-list { list-style: none; margin: 0; padding: 0; }
.amk-schedule-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}
.amk-schedule-list li:first-child { border-top: 0; }
.amk-schedule-main strong { display: block; font-size: 13.5px; color: var(--navy-800); }
.amk-schedule-main small { font-size: 12px; color: var(--navy-500); }
.amk-schedule-pill {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--navy-50);
    color: var(--navy-600);
    white-space: nowrap;
}
.is-paid .amk-schedule-pill { background: var(--success-bg); color: var(--success); }
.is-overdue .amk-schedule-pill { background: var(--danger-bg); color: var(--danger); }
.is-due-soon .amk-schedule-pill { background: var(--warning-bg); color: var(--warning); }
.is-paid .amk-schedule-main strong { color: var(--navy-500); }
.amk-schedule-list form { margin: 0; }
.amk-schedule-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy-500);
}
.amk-schedule-btn.is-pay:hover { background: var(--success); border-color: var(--success); color: #fff; }
.amk-schedule-btn:hover { border-color: var(--navy-300); }
.amk-schedule .form-switch { display: flex; gap: 8px; align-items: flex-start; padding-left: 0; }
.amk-schedule .form-switch .form-check-input { float: none; margin: 2px 0 0; flex: none; }
.amk-schedule-toggle { color: var(--navy-700); font-size: 12.5px; line-height: 1.45; }

/* ---------- Matters ------------------------------------------------------ */
.amk-matter-status {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    vertical-align: 1px;
}
.amk-matter-status.is-on_hold { background: var(--warning-bg); color: var(--warning); }
.amk-matter-status.is-closed { background: var(--navy-50); color: var(--navy-600); }

.amk-chip-count.is-muted { background: var(--navy-100, #e3e8f0); color: var(--navy-700) !important; }
.amk-chips a.active .amk-chip-count.is-muted { background: rgba(255, 255, 255, .25); color: #fff !important; }

.amk-matter-counts span { display: inline-flex; align-items: center; gap: 3px; margin-right: 10px; color: var(--navy-600); font-size: 13px; }
.amk-matter-counts svg { width: 14px; height: 14px; color: var(--gold-600); }

.amk-matter-section .card-body { padding-top: 6px; }
.amk-matter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.amk-matter-section .card-body > .amk-matter-row:first-child,
.amk-matter-section .card-body > .collapse + .amk-matter-row { border-top: 0; }
.amk-matter-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--cream);
    color: var(--gold-600);
}
.amk-matter-icon svg { width: 16px; height: 16px; }

.amk-unlink {
    border: 0;
    background: transparent;
    color: var(--navy-300);
    padding: 4px;
    line-height: 1;
}
.amk-unlink:hover { color: var(--danger); }

.amk-progress { height: 4px; border-radius: 4px; background: var(--navy-50); overflow: hidden; max-width: 220px; }
.amk-progress span { display: block; height: 100%; background: var(--gold-500); }

.amk-link-picker {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 8px 0 12px;
}
.amk-link-options { max-height: 260px; overflow-y: auto; display: grid; gap: 6px; }
.amk-link-options label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 13px;
}
.amk-link-options label:hover { border-color: var(--gold-400, #c9a56a); }
.amk-link-options .form-check-input { margin-top: 2px; flex: none; }
.amk-link-options strong { display: block; color: var(--navy-800); font-weight: 700; }
.amk-link-options small { display: block; color: var(--navy-500); }

.amk-matter-desc {
    white-space: pre-line;
    font-size: 13px;
    color: var(--navy-700);
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
}

.amk-notes { list-style: none; margin: 0; padding: 0; }
.amk-notes li { padding: 10px 0; border-top: 1px solid var(--line); }
.amk-notes li:first-child { border-top: 0; padding-top: 0; }
.amk-notes small { color: var(--navy-500); }
.amk-notes p { margin: 4px 0 0; font-size: 13.5px; color: var(--navy-800); white-space: pre-line; }
.amk-notes form { margin: 0; }

/* The purchased template prints a fixed "Showing 10 of 40 Results" on every table and hides
   DataTables' real count — show the real one instead. */
.dataTables_length label:before { content: none !important; }
.dataTables_wrapper .dataTables_info { display: block !important; }

/* ---------- Dashboard figures -------------------------------------------- */
a.dash-widget:hover { text-decoration: none; }
.amk-dash-value { font-variant-numeric: tabular-nums; }
.dash-widget .dash-widgetcontent .amk-dash-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--navy-400, #6b7a90); }

.amk-queue { display: flex; flex-wrap: wrap; gap: 10px; }
.amk-queue a {
    min-width: 120px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--navy-700);
    text-decoration: none;
}
.amk-queue a strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; line-height: 1; color: var(--navy-800); }
.amk-queue a span { font-size: 12px; }
.amk-queue a.is-alert { background: var(--danger-bg); border-color: rgba(179, 38, 30, .25); }
.amk-queue a.is-alert strong { color: var(--danger); }

.amk-money-total { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; font-weight: 600; color: var(--navy-800); line-height: 1.1; margin-top: 4px; }
.amk-money-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.amk-money-split div { background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.amk-money-split span { display: block; font-size: 12px; color: var(--navy-500); }
.amk-money-split strong { font-size: 16px; color: var(--navy-800); font-variant-numeric: tabular-nums; }

.amk-aging-row { display: grid; grid-template-columns: 100px 1fr 110px; align-items: center; gap: 10px; font-size: 12.5px; padding: 4px 0; color: var(--navy-600); }
.amk-aging-row strong { text-align: right; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.amk-aging-bar { height: 8px; background: var(--navy-50); border-radius: 8px; overflow: hidden; }
.amk-aging-bar i { display: block; height: 100%; background: var(--gold-500); border-radius: 8px; }
.amk-aging-row.is-current .amk-aging-bar i { background: var(--navy-300); }
.amk-aging-row.is-late .amk-aging-bar i { background: var(--danger); }
.amk-aging-row.is-late strong { color: var(--danger); }

.amk-rank { list-style: none; margin: 0; padding: 0; }
.amk-rank li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.amk-rank li:first-child { border-top: 0; }
.amk-rank li strong { font-variant-numeric: tabular-nums; color: var(--navy-800); white-space: nowrap; }
.amk-rank li > a, .amk-rank li > span { min-width: 0; color: var(--navy-700); }

@media (max-width: 575.98px) {
    .amk-aging-row { grid-template-columns: 84px 1fr 90px; }
    .amk-money-split { grid-template-columns: 1fr; }
}

/* ---------- Client documents --------------------------------------------- */
.amk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--navy-500); margin-bottom: 14px; }
.amk-crumbs a { color: var(--gold-700, #8a6a35); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.amk-crumbs span { color: var(--navy-800); font-weight: 700; }
.amk-crumbs svg { color: var(--navy-300); }

.amk-doc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.amk-doc-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.amk-doc-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--navy-300); }
.amk-doc-search input { padding-left: 36px; border-radius: 999px; }

.amk-folder-tile {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius, 14px);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.amk-folder-tile:hover { border-color: var(--gold-400); box-shadow: 0 8px 24px rgba(15, 30, 52, .07); transform: translateY(-1px); }
.amk-folder-link { display: flex; align-items: center; gap: 14px; padding: 18px 44px 18px 18px; color: inherit; text-decoration: none; height: 100%; }
.amk-folder-icon {
    flex: none; width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--cream); color: var(--gold-600);
}
.amk-folder-icon svg { width: 22px; height: 22px; }
.amk-folder-text { min-width: 0; }
.amk-folder-text strong { display: block; color: var(--navy-800); font-size: 14.5px; line-height: 1.3; overflow-wrap: anywhere; }
.amk-folder-text small { color: var(--navy-500); font-size: 12px; }
.amk-folder-menu { position: absolute; top: 10px; right: 6px; }
.amk-folder-menu .btn { color: var(--navy-400, #6b7a90); padding: 2px 6px; }
.amk-folder-menu .dropdown-item.text-danger:disabled { opacity: .5; }

.amk-file-table td { vertical-align: middle; }
.amk-file-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy-800); overflow-wrap: anywhere; }
.amk-file-name svg { flex: none; color: var(--gold-600); }
.amk-file-actions { display: inline-flex; gap: 6px; }
.amk-file-actions .btn { padding: 4px 8px; }

/* ---------- Confirm / alert dialog (partials.confirm-dialog) ------------- */
.amk-dialog {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(15, 30, 52, .45);
    backdrop-filter: blur(2px);
    animation: amk-dialog-fade .15s ease-out;
}
.amk-dialog[hidden] { display: none; }
body.amk-dialog-open { overflow: hidden; }
.amk-dialog-card {
    width: 100%; max-width: 420px;
    background: #fff;
    border-radius: 16px;
    border-top: 3px solid var(--gold-500);
    box-shadow: 0 24px 60px rgba(15, 30, 52, .25);
    padding: 28px 26px 22px;
    text-align: center;
    animation: amk-dialog-pop .18s ease-out;
}
.amk-dialog[data-tone="danger"] .amk-dialog-card { border-top-color: var(--danger); }
.amk-dialog-icon {
    display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
    margin-bottom: 12px;
    background: var(--gold-50, #f8f1e4) center / 24px no-repeat
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0894C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}
.amk-dialog[data-tone="danger"] .amk-dialog-icon {
    background-color: var(--danger-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E");
}
.amk-dialog-card h5 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; color: var(--navy-800); margin: 0 0 6px; }
.amk-dialog-card p { color: var(--navy-600); font-size: 14px; line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.amk-dialog-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.amk-dialog-actions .btn { min-width: 120px; }
.amk-dialog-actions [hidden] { display: none; }
@keyframes amk-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes amk-dialog-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Invoices ----------------------------------------------------- */
.amk-pay-summary { display: flex; justify-content: space-between; gap: 12px; background: var(--cream); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.amk-pay-summary span { display: block; font-size: 12px; color: var(--navy-500); }
.amk-pay-summary strong { font-size: 18px; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.amk-pay-summary small { display: block; color: var(--navy-500); max-width: 200px; text-align: right; }
.amk-pay-summary > div:last-child { text-align: right; }
.amk-pay-result { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--navy-600); }
.amk-pay-result strong { font-size: 15px; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.amk-pay-status { margin-left: auto; }
.amk-inv-status { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.amk-inv-status.is-paid { background: var(--success-bg); color: var(--success); }
.amk-inv-status.is-partially-paid { background: var(--warning-bg); color: var(--warning); }
.amk-inv-status.is-pending { background: var(--navy-50); color: var(--navy-600); }
.amk-inv-status.is-overdue { background: var(--danger-bg); color: var(--danger); }
.amk-money-cell { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy-800); }
.amk-money-cell small { font-weight: 600; color: var(--navy-500); margin-left: 3px; }
.amk-inv-wrap { max-width: 900px; margin: 0 auto 30px; }
.amk-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy-600); margin-left: 4px; vertical-align: middle; }
.amk-icon-btn:hover { border-color: var(--gold-400); color: var(--gold-700, #8a6a35); }

/* ---------- Signatures --------------------------------------------------- */
.amk-sig-pad { position: relative; border: 1px dashed var(--navy-200, #c5cfdc); border-radius: var(--radius-sm); background: #fff; }
.amk-sig-pad canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.amk-sig-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-top: 1px solid var(--navy-100); padding-top: 4px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-300); pointer-events: none; }
.amk-sig-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; color: var(--navy-400, #6b7a90); font-size: 12px; }
.amk-sig-or::before, .amk-sig-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.amk-sig-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; background: var(--cream); }
.amk-sig-preview img { max-width: 100%; max-height: 90px; display: block; margin: 0 auto 4px; }
.amk-sig-name { display: block; border-top: 1px solid var(--navy-800); margin-top: 6px; padding-top: 6px; font-weight: 700; color: var(--navy-800); }
.amk-sig-caption { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-500); }

/* ---------- Tasks (todos.board) ------------------------------------------ */
.amk-todo-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.amk-todo-search { display: flex; gap: 8px; align-items: center; flex: 1 1 360px; justify-content: flex-end; }
.amk-todo-search .amk-doc-search { max-width: 360px; }
.amk-task { border-left: 4px solid var(--navy-200, #c5cfdc) !important; }
.amk-task.is-progress { border-left-color: var(--gold-500) !important; }
.amk-task.is-hold { border-left-color: var(--danger) !important; }
.amk-task.is-done { border-left-color: var(--success) !important; }
.amk-task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.amk-task-title h5 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 21px; font-weight: 600; margin: 0 0 4px; color: var(--navy-800); }
.amk-task-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--navy-500); }
.amk-task-meta span { display: inline-flex; align-items: center; gap: 5px; }
.amk-task-meta svg { color: var(--gold-600); }
.amk-task-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.amk-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--navy-50); color: var(--navy-600); white-space: nowrap; }
.amk-pill.is-progress { background: var(--gold-50, #f8f1e4); color: var(--gold-700, #8a6a35); }
.amk-pill.is-hold, .amk-pill.is-overdue, .amk-pill.is-prio-high { background: var(--danger-bg); color: var(--danger); }
.amk-pill.is-done { background: var(--success-bg); color: var(--success); }
.amk-pill.is-prio-medium { background: var(--warning-bg); color: var(--warning); }
.amk-pill.is-prio-low { background: var(--navy-50); color: var(--navy-500); }
.amk-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-800); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.amk-task-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.amk-task-progress .amk-progress { flex: 1; max-width: none; height: 6px; }
.amk-task-progress small { color: var(--navy-500); white-space: nowrap; font-weight: 700; }
.amk-checklist-items { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.amk-checklist-items li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.amk-checklist-items li.is-done { background: var(--cream); }
.amk-checklist-items li.is-done .amk-step-text strong { color: var(--navy-400, #6b7a90); text-decoration: line-through; }
.amk-step-text { flex: 1; min-width: 0; }
.amk-step-text strong { display: block; font-size: 13.5px; color: var(--navy-800); }
.amk-step-text small { display: block; font-size: 12px; color: var(--navy-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amk-step-actions { display: flex; gap: 2px; }
.amk-step-actions .amk-icon-btn { width: 30px; height: 30px; position: relative; }
.amk-step-actions em { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--gold-500); color: #fff; font-size: 10px; font-style: normal; font-weight: 800; line-height: 16px; }
.amk-step-check { position: relative; flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.amk-step-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amk-step-check span { position: absolute; inset: 0; border: 2px solid var(--navy-200, #c5cfdc); border-radius: 6px; background: #fff; transition: all .15s; }
.amk-step-check input:checked + span { background: var(--success); border-color: var(--success); }
.amk-step-check input:checked + span::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.amk-step-check input:not(:disabled):hover + span { border-color: var(--gold-500); }
.amk-step-check input:disabled { cursor: default; }
.amk-task-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.amk-task-foot form { margin: 0; }
.amk-meta-grid { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 6px 14px; }
.amk-meta-grid dd { margin: 0; }
.amk-view-step { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; }
.amk-view-step.is-done { background: var(--cream); }
.amk-view-comment { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 6px; font-size: 13px; white-space: pre-line; }
@media (max-width: 575.98px) { .amk-meta-grid { grid-template-columns: max-content 1fr; } .amk-todo-search { justify-content: stretch; } }

/* ---------- Profile ------------------------------------------------------- */
.amk-profile-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.amk-profile-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; flex: none; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; font-weight: 600; border: 3px solid var(--gold-400); }
.amk-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Calendar ------------------------------------------------------ */
.amk-cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.amk-cal-month { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; font-weight: 600; color: var(--navy-800); }
.amk-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.amk-cal-key { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy-700); text-decoration: none; }
.amk-cal-key span { width: 10px; height: 10px; border-radius: 3px; background: var(--tone); }
.amk-cal-key.is-off { opacity: .4; text-decoration: line-through; }
.is-navy { --tone: #0F1E34; --tone-bg: #e8ecf2; }
.is-gold { --tone: #B0894C; --tone-bg: #f8f1e4; }
.is-green { --tone: #2F7D4F; --tone-bg: #e7f3ec; }
.is-red { --tone: #B3261E; --tone-bg: #fbeae9; }
.is-violet { --tone: #6B4FA0; --tone-bg: #efeaf7; }

.amk-cal { overflow: hidden; }
.amk-cal-head, .amk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.amk-cal-head span { padding: 10px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-500); background: var(--cream); border-bottom: 1px solid var(--line); }
.amk-cal-day { position: relative; min-height: 116px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.amk-cal-day:nth-child(7n) { border-right: 0; }
.amk-cal-day.is-weekend { background: #fcfbf8; }
.amk-cal-day.is-out { background: #f7f5f0; }
.amk-cal-day.is-out .amk-cal-num { color: var(--navy-300); }
.amk-cal-day.is-selected { box-shadow: inset 0 0 0 2px var(--gold-400); }
.amk-cal-num { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--navy-700); text-decoration: none; }
.amk-cal-num:hover { background: var(--navy-50); }
.amk-cal-day.is-today .amk-cal-num { background: var(--navy-800); color: #fff; }
.amk-cal-add { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: transparent; color: var(--navy-300); font-weight: 800; line-height: 1; opacity: 0; transition: opacity .15s; }
.amk-cal-day:hover .amk-cal-add { opacity: 1; }
.amk-cal-add:hover { background: var(--gold-50, #f8f1e4); color: var(--gold-700, #8a6a35); }
.amk-cal-chip { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--tone); background: var(--tone-bg); color: var(--navy-800); border-radius: 5px; padding: 3px 6px; font-size: 11.5px; line-height: 1.3; text-decoration: none; overflow: hidden; }
.amk-cal-chip:hover { filter: brightness(.97); color: var(--navy-900, #0b1626); }
.amk-cal-chip b { font-weight: 800; margin-right: 3px; }
.amk-cal-chip.is-compact { white-space: nowrap; text-overflow: ellipsis; }
.amk-cal-chip.is-compact .amk-cal-chip-title { overflow: hidden; text-overflow: ellipsis; }
.amk-cal-chip:not(.is-compact) { padding: 8px 10px; margin-bottom: 6px; font-size: 13px; }
.amk-cal-chip:not(.is-compact) .amk-cal-chip-title { font-weight: 700; }
.amk-cal-chip small { display: block; color: var(--navy-500); font-size: 11.5px; margin-top: 1px; }
.amk-cal-more { font-size: 11px; font-weight: 800; color: var(--gold-700, #8a6a35); text-decoration: none; padding-left: 4px; }

.amk-agenda-day { display: flex; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.amk-agenda-day:first-child { border-top: 0; padding-top: 0; }
.amk-agenda-date { flex: none; width: 64px; text-align: center; }
.amk-agenda-date strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 32px; line-height: 1; color: var(--navy-800); }
.amk-agenda-date span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.amk-agenda-date small { color: var(--navy-500); font-size: 11.5px; }
.amk-agenda-day.is-today .amk-agenda-date strong { color: var(--gold-600); }
.amk-agenda-items { flex: 1; min-width: 0; }

@media (max-width: 767.98px) {
    .amk-cal-day { min-height: 72px; padding: 4px; }
    .amk-cal-chip.is-compact { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--tone); }
    .amk-cal-chip.is-compact b { display: none; }
    .amk-cal-more { font-size: 10px; }
    .amk-cal-head span { padding: 8px 2px; text-align: center; letter-spacing: .04em; }
}
.amk-soon { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.amk-soon-day { display: flex; gap: 10px; }
.amk-soon-date { flex: none; width: 44px; text-align: center; }
.amk-soon-date strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; line-height: 1; color: var(--navy-800); }
.amk-soon-date span { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-500); }
.amk-soon-date.is-today strong, .amk-soon-date.is-today span { color: var(--gold-600); }
.amk-soon-items { flex: 1; min-width: 0; display: grid; gap: 5px; }
.amk-soon-items .amk-cal-chip { padding: 6px 8px; font-size: 12.5px; }
.amk-soon-items .amk-cal-chip-title { font-weight: 700; }
.amk-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy-700); cursor: pointer; }
.amk-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--navy-800); margin: 0; }
.amk-check span { color: var(--navy-700) !important; }

/* ---------- Letters ------------------------------------------------------ */
.amk-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.amk-editor-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--cream); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.amk-editor-bar button { min-width: 32px; height: 30px; border: 0; background: transparent; border-radius: 6px; color: var(--navy-700); font-weight: 700; }
.amk-editor-bar button:hover { background: #fff; }
.amk-editor-bar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.amk-editor-area { min-height: 320px; padding: 18px 20px; outline: none; font-size: 14px; line-height: 1.65; color: var(--navy-800); }
.amk-editor-area p { margin: 0 0 12px; }
.amk-editor-area mark { background: #fdf1d3; padding: 0 2px; border-radius: 3px; }
.amk-editor-tokens { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--navy-500); }
.amk-editor-tokens button { border: 1px solid var(--line); background: var(--cream); border-radius: 6px; font-size: 11.5px; padding: 2px 6px; font-family: ui-monospace, Menlo, monospace; color: var(--navy-700); }
.amk-letter-wrap { max-width: 840px; margin: 0 auto 30px; }
.amk-letter-body p { margin: 0 0 12px; }
.amk-tpl-card { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.amk-tpl-card:hover { border-color: var(--gold-400); transform: translateY(-1px); }
.amk-tpl-card strong { display: block; color: var(--navy-800); }
.amk-tpl-card small { color: var(--navy-500); }

/* ---------- Activity log -------------------------------------------------- */
.amk-log { list-style: none; margin: 0; padding: 0; }
.amk-log-day { padding: 14px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); border-bottom: 1px solid var(--line); }
.amk-log-day:first-child { padding-top: 0; }
.amk-log-entry { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.amk-log-entry:last-child { border-bottom: 0; }
.amk-log-time { flex: none; width: 48px; font-weight: 800; color: var(--navy-700); font-size: 12px; line-height: 1.2; }
.amk-log-time small { display: block; font-weight: 600; color: var(--navy-400, #6b7a90); }
.amk-log-body { flex: 1; min-width: 0; }
.amk-log-body > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.amk-log-changes { list-style: none; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: var(--navy-600); }
.amk-log-changes span { font-weight: 700; color: var(--navy-700); }
.amk-log-changes del { color: var(--danger); text-decoration-color: rgba(179, 38, 30, .5); }
.amk-log-changes ins { color: var(--success); text-decoration: none; font-weight: 700; }
.amk-log-compact .amk-log-entry { font-size: 12.5px; gap: 10px; padding: 8px 0; }
.amk-log-compact .amk-log-time { width: 40px; font-size: 11px; }

/* ---------- Conflict check ------------------------------------------------ */
.amk-conflict-summary { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; border: 1px solid; }
.amk-conflict-summary svg { flex: none; width: 26px; height: 26px; }
.amk-conflict-summary strong { display: block; font-size: 16px; margin-bottom: 2px; }
.amk-conflict-summary span { font-size: 13.5px; }
.amk-conflict-summary.is-danger { background: #fbeceb; border-color: rgba(179, 38, 30, .25); color: #8c1d17; }
.amk-conflict-summary.is-warn { background: #fdf6e7; border-color: rgba(176, 133, 52, .3); color: #7a5a17; }
.amk-conflict-summary.is-clear { background: #eaf5ee; border-color: rgba(30, 126, 70, .25); color: #1b6b3d; }
.amk-conflict-hits { list-style: none; margin: 0; padding: 0; }
.amk-conflict-hits > li { padding: 10px 12px; border-left: 3px solid var(--line); margin-top: 8px; background: rgba(15, 30, 54, .025); border-radius: 0 10px 10px 0; }
.amk-conflict-hits > li.is-danger { border-left-color: var(--danger); background: #fdf3f2; }
.amk-conflict-hits > li.is-warn { border-left-color: var(--gold-500, #b08534); }
.amk-conflict-hits ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 13px; }
.amk-conflict-status { padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.amk-conflict-status a { color: inherit; display: block; }
.amk-conflict-status.is-clear { background: #eaf5ee; color: #1b6b3d; }
.amk-conflict-status.is-warn { background: #fdf6e7; color: #7a5a17; }
.amk-conflict-status.is-danger { background: #fbeceb; color: #8c1d17; }

/* ---------- Clients ------------------------------------------------------- */
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
.amk-client-photo { display: inline-flex; flex: none; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--navy-800); color: #fff; font-weight: 800; letter-spacing: .03em; }
.amk-client-photo img { width: 100%; height: 100%; object-fit: cover; }
.amk-client-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.amk-client-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.amk-client-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--navy-400, #6b7a90); }
.amk-client-search input { padding-left: 36px; }
.amk-client-table th { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-500); background: transparent; border-bottom: 1px solid var(--line); white-space: nowrap; }
.amk-client-table td { vertical-align: middle; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.amk-client-table tbody tr:hover { background: rgba(15, 30, 54, .02); }
.amk-client-cell { display: flex; align-items: center; gap: 12px; color: var(--navy-800); max-width: 340px; }
.amk-client-hero .card-body { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; }
.amk-client-hero-main { display: flex; gap: 20px; align-items: center; min-width: 0; flex: 1 1 420px; }
.amk-client-hero-photo { position: relative; flex: none; margin: 0; }
.amk-client-hero-photo .amk-client-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold-300, #d9c29a); }
.amk-photo-btn { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold-500, #b08534); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #fff; margin: 0; }
.amk-photo-btn:hover { background: var(--navy-800); }
.amk-client-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 30px; margin: 2px 0 6px; color: var(--navy-900, #0f1e34); overflow-wrap: anywhere; }
.amk-client-contact { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; }
.amk-client-contact a, .amk-client-contact span { display: inline-flex; align-items: center; gap: 6px; color: var(--navy-700); }
.amk-client-contact a:hover { color: var(--gold-700, #8a6a35); }
.amk-client-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.amk-client-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.amk-client-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; }
.amk-client-nav a { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--navy-700); }
.amk-client-nav a span { color: var(--gold-600); margin-left: 2px; }
.amk-client-nav a:hover { border-color: var(--gold-400); }
.amk-client-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--navy-800); }
.amk-client-row:first-child { border-top: 0; }
.amk-client-row:hover strong { color: var(--gold-700, #8a6a35); }
.amk-client-dates { list-style: none; margin: 0; padding: 0; }
.amk-client-dates li { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.amk-client-dates li:first-child { border-top: 0; }
.amk-client-dates a { color: var(--navy-800); }
.amk-client-date { flex: none; width: 44px; text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-500); border-left: 3px solid var(--navy-300, #a9b4c4); padding-left: 4px; }
.amk-client-date strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; line-height: 1; color: var(--navy-800); letter-spacing: 0; }
.amk-client-dates li.is-red .amk-client-date { border-left-color: var(--danger); }
.amk-client-dates li.is-green .amk-client-date { border-left-color: var(--success); }
.amk-client-dates li.is-gold .amk-client-date { border-left-color: var(--gold-500, #b08534); }
.amk-client-dates li.is-violet .amk-client-date { border-left-color: #6d4fb3; }
.amk-photo-pick { display: inline-block; cursor: pointer; margin: 0; }
.amk-photo-preview { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--navy-50, #eef1f5); border: 2px dashed var(--gold-300, #d9c29a); color: var(--navy-500); font-size: 34px; font-weight: 800; }
.amk-photo-preview > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.amk-photo-preview > span svg { width: 22px; height: 22px; }
.amk-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575px) {
    .amk-client-hero-main { flex-direction: column; align-items: flex-start; }
    .amk-client-name { font-size: 25px; }
}
.dash-widget .dash-widgetcontent h5.amk-dash-money { font-size: 20px !important; white-space: nowrap; line-height: 1.25; }

/* ---------- Customer forms (incorporation) -------------------------------- */
.amk-cf-objectives { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.amk-cf-objectives.is-invalid { border-color: var(--danger); }
.amk-cf-objectives .amk-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; margin: 0; }
.amk-cf-objectives .amk-check input { margin-top: 3px; }
.amk-cf-shares { padding: 9px 12px; border-radius: 8px; background: var(--navy-50, #eef1f5); font-size: 13px; color: var(--navy-700); }
.amk-cf-shares.is-ok { background: #eaf5ee; color: #1b6b3d; }
.amk-cf-shares.is-off { background: #fdf6e7; color: #7a5a17; }
.amk-cf-holder { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: rgba(15, 30, 54, .015); }
.amk-cf-holder:last-child { margin-bottom: 0; }
.amk-cf-person { border: 0; border-top: 1px solid var(--line); padding: 14px 0 6px; margin: 0; }
.amk-cf-person:first-of-type { border-top: 0; padding-top: 0; }
.amk-cf-person legend { float: none; width: auto; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 10px; }
.amk-cf-person.is-muted { opacity: .45; }
.amk-row-highlight { background: #fdf6e7; }
.amk-doc-frame [hidden] { display: none !important; }
.amk-mou-pdf { position: relative; }
.amk-mou-loading { position: absolute; inset: 0 0 auto 0; padding: 40px; text-align: center; color: var(--navy-600); font-weight: 700; }
.amk-step-assignee { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--navy-50, #eef1f5); color: var(--navy-700); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.amk-step-assignee svg { width: 12px; height: 12px; }
.amk-task-people { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.amk-task-owner { display: inline-flex; align-items: center; gap: 7px; padding: 2px 10px 2px 2px; border-radius: 999px; background: var(--navy-50, #eef1f5); font-size: 12.5px; font-weight: 700; color: var(--navy-800); }
.amk-task-owner .amk-avatar { width: 24px; height: 24px; font-size: 9.5px; }
.amk-task-owner.is-none { background: #fdf6e7; color: #7a5a17; }
.amk-task-owner.is-none .amk-avatar { background: var(--gold-500, #b08534); }
.amk-task-people .amk-step-assignee { margin-left: 0; }
.amk-step-assignee em { font-style: normal; margin-left: 3px; padding: 0 5px; border-radius: 999px; background: var(--navy-800); color: #fff; font-size: 10.5px; }
.amk-step-assignee.is-finished { opacity: .6; }
.amk-step-assignee.is-finished em { background: var(--success); }
.amk-step-owner { display: flex; width: fit-content; align-items: center; gap: 6px; align-self: flex-start; margin: 3px 0 2px; padding: 2px 9px 2px 2px; border-radius: 999px; background: var(--navy-50, #eef1f5); font-size: 12px; font-weight: 700; color: var(--navy-800); max-width: 100%; }
.amk-step-owner .amk-avatar { width: 20px; height: 20px; font-size: 8.5px; flex: none; }
li.is-done .amk-step-owner { opacity: .65; }
.amk-step-owner .amk-avatar { width: 20px !important; height: 20px !important; flex: 0 0 20px; font-size: 8.5px; border-width: 1px; }

/* ---------- Practice report (screen) -------------------------------------- */
.amk-gr .gr-kpis { width: 100%; border-collapse: separate; border-spacing: 10px; margin: -10px -10px 0; width: calc(100% + 20px); }
.amk-gr .gr-kpis td { width: 33.3%; vertical-align: top; }
.amk-gr .gr-kpi { border: 1px solid var(--line); border-left: 3px solid var(--gold-500, #b08534); border-radius: 12px; padding: 12px 14px; height: 100%; }
.amk-gr .gr-kpi strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; line-height: 1.1; color: var(--navy-900, #0f1e34); }
.amk-gr .gr-kpi.is-money strong { font-family: inherit; font-size: 17px; font-weight: 800; padding: 5px 0 3px; }
.amk-gr .gr-kpi.is-alert { border-left-color: var(--danger); }
.amk-gr .gr-kpi span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-500); }
.amk-gr .gr-kpi small { display: block; color: var(--navy-500); font-size: 12px; }
.amk-gr .gr-section { margin-top: 26px; }
.amk-gr .gr-section h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; color: var(--navy-900, #0f1e34); border-bottom: 1px solid var(--gold-300, #d9c29a); padding-bottom: 6px; margin-bottom: 6px; }
.amk-gr .gr-note { font-size: 12.5px; color: var(--navy-500); margin: 2px 0 8px; }
.amk-gr .gr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.amk-gr .gr-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-500); background: rgba(15, 30, 54, .03); padding: 8px 10px; white-space: nowrap; }
.amk-gr .gr-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.amk-gr .gr-table tfoot td { border-top: 2px solid var(--gold-300, #d9c29a); }
.amk-gr .r { text-align: right; white-space: nowrap; }
.amk-gr .c { text-align: center; }
.amk-gr .gr-grid td, .amk-gr .gr-grid th { padding: 7px 6px; }
.amk-gr .gr-grid .zero { color: #c7c2b6; }
.amk-gr .gr-grid .has { font-weight: 800; color: var(--navy-900, #0f1e34); background: #fdf6e7; }
.amk-gr .gr-bar { display: inline-block; width: calc(100% - 40px); height: 8px; background: #eceae4; border-radius: 4px; vertical-align: middle; }
.amk-gr .gr-bar div { height: 8px; background: var(--gold-500, #b08534); border-radius: 4px; }
.amk-gr .gr-bar-n { font-weight: 800; margin-left: 6px; }
.amk-gr .gr-red { color: var(--danger); font-weight: 800; }
.amk-gr .gr-muted, .amk-gr .gr-muted td { color: var(--navy-400, #8a95a5); }
.amk-gr .gr-empty { text-align: center; color: var(--navy-400, #8a95a5); padding: 14px; }
.amk-gr .gr-section { overflow-x: auto; }
@media (max-width: 991px) { .amk-gr .gr-kpis td { display: block; width: 100%; } }
.amk-gr .gr-table th.r { text-align: right; } .amk-gr .gr-table th.c { text-align: center; }

/* ---------- Team chat ----------------------------------------------------- */
.amk-chat-page { padding-bottom: 16px !important; }
.amk-chat { display: flex; height: calc(100vh - 120px); min-height: 520px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(15, 30, 54, .06); }
.amk-chat-side { width: 340px; flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #fbfaf7; }
.amk-chat-side-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 10px; }
.amk-chat-side-head h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; margin: 0; color: var(--navy-900, #0f1e34); }
.amk-chat-new { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--navy-900, #0f1e34); color: #fff; display: flex; align-items: center; justify-content: center; }
.amk-chat-new svg { width: 17px; height: 17px; }
.amk-chat-new:hover { background: var(--gold-600, #9a7838); }
.amk-chat-search { position: relative; margin: 0 14px 10px; }
.amk-chat-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--navy-400, #8a95a5); }
.amk-chat-search input { width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 34px; font-size: 13.5px; background: #fff; }
.amk-chat-search input:focus { outline: none; border-color: var(--gold-400, #c9a96b); }
.amk-chat-list { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; flex: 1; }
.amk-chat-list-empty { padding: 30px 16px; text-align: center; color: var(--navy-400, #8a95a5); font-size: 13px; }
.amk-chat-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; color: var(--navy-800); margin-bottom: 2px; }
.amk-chat-item:hover { background: rgba(15, 30, 54, .04); }
.amk-chat-item.is-active { background: var(--navy-900, #0f1e34); color: #fff; }
.amk-chat-item.is-active small, .amk-chat-item.is-active .amk-chat-item-bottom span { color: #c9d1dc; }
.amk-chat-item-text { flex: 1; min-width: 0; }
.amk-chat-item-top, .amk-chat-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.amk-chat-item-top strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amk-chat-item-top small { font-size: 11px; color: var(--navy-400, #8a95a5); flex: none; }
.amk-chat-item-bottom span { font-size: 12.5px; color: var(--navy-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amk-chat-item-bottom em { font-style: normal; flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-500, #b08534); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.amk-chat-item.is-unread strong { font-weight: 800; }
.amk-chat-item.is-unread .amk-chat-item-bottom span { color: var(--navy-800); font-weight: 700; }

.amk-chat-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--navy-800, #1d2a3d); color: var(--gold-300, #d9c29a); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; overflow: hidden; }
.amk-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.amk-chat-avatar.is-small { width: 30px; height: 30px; font-size: 10.5px; align-self: flex-end; }

.amk-chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f4f1ea; position: relative; }
.amk-chat-blank { margin: auto; text-align: center; max-width: 380px; padding: 30px; color: var(--navy-600); }
.amk-chat-blank-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--gold-600, #9a7838); box-shadow: 0 6px 20px rgba(15, 30, 54, .08); }
.amk-chat-blank-icon svg { width: 32px; height: 32px; }
.amk-chat-blank h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: var(--navy-900, #0f1e34); }
.amk-chat-thread { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.amk-chat-thread[hidden], .amk-chat-blank[hidden] { display: none !important; }
.amk-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.amk-chat-head-text { flex: 1; min-width: 0; }
.amk-chat-head-text strong { display: block; font-size: 15.5px; color: var(--navy-900, #0f1e34); }
.amk-chat-head-text small { display: block; font-size: 12px; color: var(--navy-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amk-chat-back { display: none; border: 0; background: none; color: var(--navy-700); padding: 4px; }

.amk-chat-scroll { flex: 1; overflow-y: auto; padding: 18px 22px 8px; background-image: radial-gradient(rgba(176, 133, 52, .07) 1px, transparent 1px); background-size: 18px 18px; }
.amk-chat-older { text-align: center; margin-bottom: 10px; }
.amk-chat-day { text-align: center; margin: 14px 0 10px; }
.amk-chat-day span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--navy-500); }

.amk-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; position: relative; }
.amk-msg.is-follow { margin-top: 3px; }
.amk-msg.is-follow > .amk-chat-avatar { visibility: hidden; }
.amk-msg.is-follow .amk-msg-name { display: none; }
.amk-msg.is-mine { flex-direction: row-reverse; }
.amk-msg-box { max-width: min(72%, 560px); background: #fff; border-radius: 16px 16px 16px 4px; padding: 8px 12px 6px; box-shadow: 0 1px 2px rgba(15, 30, 54, .08); position: relative; }
.amk-msg.is-mine .amk-msg-box { background: var(--navy-900, #0f1e34); color: #fff; border-radius: 16px 16px 4px 16px; }
.amk-msg.is-follow .amk-msg-box { border-radius: 16px; }
.amk-msg-name { display: block; font-size: 12px; font-weight: 800; color: var(--gold-700, #8a6a35); margin-bottom: 2px; }
.amk-msg-text { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.amk-msg-text a { color: inherit; text-decoration: underline; }
.amk-msg-meta { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 10.5px; color: var(--navy-400, #8a95a5); margin-top: 2px; }
.amk-msg.is-mine .amk-msg-meta { color: #9fb0c6; }
.amk-msg-tick { font-weight: 800; letter-spacing: -2px; }
.amk-msg-tick.is-read { color: var(--gold-300, #d9c29a); }
.amk-msg.is-deleted .amk-msg-box { background: transparent !important; color: var(--navy-400, #8a95a5) !important; box-shadow: none; border: 1px dashed var(--line); font-style: italic; }
.amk-msg.is-flash .amk-msg-box { animation: amk-flash 1.2s; }
@keyframes amk-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--gold-300, #d9c29a); } }
.amk-msg-quote { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--gold-500, #b08534); background: rgba(15, 30, 54, .05); border-radius: 8px; padding: 5px 9px; margin-bottom: 6px; font-size: 12.5px; color: inherit; }
.amk-msg.is-mine .amk-msg-quote { background: rgba(255, 255, 255, .1); }
.amk-msg-quote b { display: block; font-size: 11.5px; color: var(--gold-600, #9a7838); }
.amk-msg.is-mine .amk-msg-quote b { color: var(--gold-300, #d9c29a); }
.amk-msg-quote span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }

.amk-msg-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; align-self: center; }
.amk-msg:hover .amk-msg-tools { opacity: 1; }
.amk-msg-tools button, .amk-msg-tools a { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: var(--navy-600); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(15, 30, 54, .12); }
.amk-msg-tools .is-danger:hover { color: var(--danger); }

.amk-msg-image { display: block; border: 0; padding: 0; background: none; margin: 2px -6px 4px; border-radius: 12px; overflow: hidden; max-width: 340px; }
.amk-msg-image img { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.amk-msg-video { margin: 2px -6px 4px; border-radius: 12px; overflow: hidden; max-width: 380px; background: #000; }
.amk-msg-video video { display: block; width: 100%; max-height: 340px; }
.amk-msg-audio { display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 2px 0 4px; }
.amk-msg-audio audio { height: 36px; max-width: 260px; display: block; }
.amk-msg-audio-icon { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--gold-500, #b08534); color: #fff; display: flex; align-items: center; justify-content: center; }
.amk-msg-file-name { display: block; font-weight: 700; margin-bottom: 2px; }
.amk-msg-file { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 6px 4px 6px 2px; color: inherit !important; }
.amk-msg-file > span:nth-child(2) { flex: 1; min-width: 0; }
.amk-msg-file strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.amk-msg-file small { display: block; font-size: 11.5px; opacity: .7; }
.amk-msg-file-ext { width: 42px; height: 48px; flex: none; border-radius: 6px; background: #5b6b82; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.amk-msg-file-ext.is-pdf { background: #c0392b; }
.amk-msg-file-ext.is-doc, .amk-msg-file-ext.is-docx { background: #2b579a; }
.amk-msg-file-ext.is-xls, .amk-msg-file-ext.is-xlsx, .amk-msg-file-ext.is-csv { background: #217346; }
.amk-msg-file-ext.is-ppt, .amk-msg-file-ext.is-pptx { background: #d24726; }
.amk-msg-file-ext.is-zip, .amk-msg-file-ext.is-rar { background: #8a6a35; }
.amk-msg-file-view { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor; color: inherit !important; opacity: .8; }
.amk-msg.is-pending { opacity: .75; }
.amk-msg.is-failed .amk-msg-box { background: #fbeceb !important; color: #8c1d17 !important; }
.amk-msg-progress { height: 4px; background: rgba(255, 255, 255, .2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.amk-msg-progress span { display: block; height: 100%; width: 3%; background: var(--gold-400, #c9a96b); transition: width .2s; }

.amk-chat-drop { position: absolute; inset: 0; z-index: 5; background: rgba(15, 30, 54, .55); display: flex; align-items: center; justify-content: center; }
.amk-chat-drop[hidden] { display: none; }
.amk-chat-drop div { background: #fff; border: 2px dashed var(--gold-500, #b08534); border-radius: 18px; padding: 30px 44px; text-align: center; color: var(--navy-800); }
.amk-chat-drop svg { width: 36px; height: 36px; color: var(--gold-600, #9a7838); display: block; margin: 0 auto 8px; }

.amk-chat-compose { background: #fff; border-top: 1px solid var(--line); padding: 10px 14px 12px; }
.amk-chat-reply { display: flex; align-items: center; gap: 10px; border-left: 3px solid var(--gold-500, #b08534); background: #faf8f3; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.amk-chat-reply > div { flex: 1; min-width: 0; font-size: 13px; }
.amk-chat-reply small { display: block; color: var(--navy-500); }
.amk-chat-reply span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amk-chat-tray { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.amk-chat-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #faf8f3; max-width: 260px; }
.amk-chat-chip img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.amk-chat-chip span { min-width: 0; }
.amk-chat-chip strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amk-chat-chip small { display: block; font-size: 11px; color: var(--navy-500); }
.amk-chat-error { background: #fbeceb; color: #8c1d17; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 8px; }
.amk-chat-bar, .amk-chat-rec { display: flex; align-items: flex-end; gap: 8px; }
.amk-chat-bar[hidden], .amk-chat-rec[hidden], .amk-chat-tray[hidden], .amk-chat-reply[hidden], .amk-chat-error[hidden] { display: none !important; }
.amk-chat-bar textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 22px; padding: 10px 16px; font-size: 14.5px; line-height: 1.4; max-height: 160px; background: #faf8f3; }
.amk-chat-bar textarea:focus { outline: none; border-color: var(--gold-400, #c9a96b); background: #fff; }
.amk-chat-tool { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--navy-600); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.amk-chat-tool:hover { background: rgba(15, 30, 54, .06); color: var(--navy-900, #0f1e34); }
.amk-chat-tool[hidden], .amk-chat-send[hidden] { display: none !important; }
.amk-chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--gold-500, #b08534); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.amk-chat-send:hover { background: var(--navy-900, #0f1e34); }
.amk-chat-rec { align-items: center; padding: 2px 4px; }
.amk-chat-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); animation: amk-rec 1s infinite; }
@keyframes amk-rec { 50% { opacity: .3; } }
.amk-chat-rec strong { font-variant-numeric: tabular-nums; font-size: 15px; }
.amk-chat-rec .amk-chat-send { margin-left: auto; }

.amk-chat-people { list-style: none; margin: 0; padding: 0; }
.amk-chat-people li > button, .amk-chat-people li > label { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; background: none; border-radius: 12px; text-align: left; cursor: pointer; margin: 0; }
.amk-chat-people li > button:hover, .amk-chat-people li > label:hover { background: rgba(15, 30, 54, .05); }
.amk-chat-people strong { display: block; color: var(--navy-900, #0f1e34); }
.amk-chat-people small { display: block; color: var(--navy-500); }
.amk-chat-people.is-pick input { width: 18px; height: 18px; accent-color: var(--navy-900, #0f1e34); }

.amk-chat-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 14, 24, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; }
.amk-chat-lightbox[hidden] { display: none; }
.amk-chat-lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.amk-chat-lightbox-close { position: absolute; top: 14px; right: 22px; border: 0; background: none; color: #fff; font-size: 40px; line-height: 1; }
.amk-nav-chat-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-500, #b08534); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.amk-nav-chat-badge[hidden] { display: none; }

@media (max-width: 991px) {
    .amk-chat { height: calc(100vh - 100px); border-radius: 14px; }
    .amk-chat-side { width: 100%; border-right: 0; }
    .amk-chat-main { display: none; }
    .amk-chat.is-open .amk-chat-side { display: none; }
    .amk-chat.is-open .amk-chat-main { display: flex; }
    .amk-chat-back { display: inline-flex; }
    .amk-msg-box { max-width: 84%; }
    .amk-msg-tools { opacity: 1; flex-direction: column; }
    .amk-chat-scroll { padding: 12px 10px 6px; }
}
