/*
 * SAMOS integrated staging theme
 * Loaded after the legacy AdminLTE and tenant styles so the published
 * application can be modernised without rebuilding the compiled bundles.
 */

:root {
    --samos-primary: #006d67;
    --samos-primary-strong: #004f4a;
    --samos-primary-soft: #e5f2f0;
    --samos-accent: #e9b949;
    --samos-accent-strong: #c9901c;
    --samos-sidebar: #073d39;
    --samos-sidebar-active: #0f5751;
    --samos-sidebar-text: #d8ebe8;
    --samos-canvas: #f2f6f5;
    --samos-surface: #ffffff;
    --samos-surface-muted: #f7faf9;
    --samos-border: #dce6e3;
    --samos-text: #162523;
    --samos-text-muted: #687b77;
    --samos-success: #2d8a68;
    --samos-warning: #b97808;
    --samos-danger: #b64848;
    --samos-info: #3977b7;
    --samos-focus: #f2b93d;
    --samos-radius: 6px;
    --samos-radius-sm: 5px;
    --samos-shadow: 0 3px 10px rgba(15, 58, 54, .07);
    --samos-sidebar-width: 248px;
    --samos-header-height: 64px;
    --samos-row-height: 46px;
}

html[data-samos-theme="dark"] {
    --samos-primary: #53bdb2;
    --samos-primary-strong: #82d5cc;
    --samos-primary-soft: #173b38;
    --samos-accent: #efc668;
    --samos-accent-strong: #ffd987;
    --samos-sidebar: #061d1c;
    --samos-sidebar-active: #123d39;
    --samos-sidebar-text: #d9efec;
    --samos-canvas: #0d1918;
    --samos-surface: #132321;
    --samos-surface-muted: #172a28;
    --samos-border: #29413e;
    --samos-text: #edf7f5;
    --samos-text-muted: #a5b9b5;
    --samos-success: #62c49c;
    --samos-warning: #efc668;
    --samos-danger: #ef8c8c;
    --samos-info: #7eb6ec;
    --samos-shadow: 0 10px 30px rgba(0, 0, 0, .24);
}

html[data-samos-theme="warm"] {
    --samos-primary: #275e58;
    --samos-primary-strong: #17443f;
    --samos-primary-soft: #e5eeeb;
    --samos-accent: #ce9841;
    --samos-accent-strong: #ae7521;
    --samos-sidebar: #263f3b;
    --samos-sidebar-active: #385d56;
    --samos-sidebar-text: #f2f3ec;
    --samos-canvas: #f4efe7;
    --samos-surface: #fffdf8;
    --samos-surface-muted: #f8f3ea;
    --samos-border: #e2d9ca;
    --samos-text: #2b302d;
    --samos-text-muted: #756f65;
}

html[data-samos-density="compact"] {
    --samos-row-height: 38px;
    --samos-radius: 9px;
}

html,
body.samos-modern {
    min-height: 100%;
    background: var(--samos-canvas);
}

body.samos-modern {
    color: var(--samos-text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

body.samos-modern a {
    color: var(--samos-primary);
}

body.samos-modern a:hover,
body.samos-modern a:focus {
    color: var(--samos-primary-strong);
}

body.samos-modern :focus-visible {
    outline: 3px solid var(--samos-focus) !important;
    outline-offset: 2px;
}

.samos-skip-link {
    position: fixed;
    z-index: 100000;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    border-radius: 7px;
    color: #092e2b !important;
    background: var(--samos-accent);
    font-weight: 700;
    transform: translateY(-150%);
}

.samos-skip-link:focus {
    transform: translateY(0);
}

/* Main shell */

body.samos-modern .wrapper {
    background: var(--samos-canvas) !important;
}

body.samos-modern .main-header {
    max-height: none;
}

body.samos-modern .main-header .logo {
    width: var(--samos-sidebar-width);
    height: var(--samos-header-height);
    padding: 0 18px;
    color: #fff !important;
    background: var(--samos-sidebar) !important;
    border-right: 1px solid rgba(255, 255, 255, .09);
    line-height: var(--samos-header-height);
}

body.samos-modern .main-header .logo:hover {
    background: var(--samos-sidebar) !important;
}

body.samos-modern .main-header .logo .logo-lg,
body.samos-modern .main-header .logo .logo-mini {
    height: var(--samos-header-height);
}

body.samos-modern .main-header .logo img {
    max-width: 138px;
    max-height: 42px;
    object-fit: contain;
    vertical-align: middle;
}

.samos-shell-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--samos-header-height);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .16em;
}

.samos-shell-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #123e39;
    background: var(--samos-accent);
    border-radius: 50%;
    font-size: 18px;
    letter-spacing: 0;
}

.samos-shell-brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.samos-shell-brand__copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .04em;
}

body.samos-modern .main-header .navbar {
    min-height: var(--samos-header-height);
    margin-left: var(--samos-sidebar-width);
    background: var(--samos-surface) !important;
    border-bottom: 1px solid var(--samos-border);
    box-shadow: 0 2px 16px rgba(20, 56, 52, .06);
}

body.samos-modern .main-header .navbar .sidebar-toggle {
    height: var(--samos-header-height);
    padding: 22px 20px;
    color: var(--samos-text) !important;
}

body.samos-modern .main-header .navbar .sidebar-toggle:hover {
    color: var(--samos-primary) !important;
    background: var(--samos-primary-soft) !important;
}

body.samos-modern .navbar-nav > li > a {
    min-height: var(--samos-header-height);
    padding-top: 21px;
    padding-bottom: 18px;
    color: var(--samos-text) !important;
}

body.samos-modern .navbar-nav > li > a:hover,
body.samos-modern .navbar-nav > li > a:focus,
body.samos-modern .navbar-nav > .open > a {
    color: var(--samos-primary) !important;
    background: var(--samos-primary-soft) !important;
}

body.samos-modern .navbar-nav > .user-menu .user-image {
    width: 30px;
    height: 30px;
    margin-top: -5px;
    border: 2px solid var(--samos-border);
}

body.samos-modern .navbar-custom-menu .dropdown-menu {
    color: var(--samos-text);
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: var(--samos-radius-sm);
    box-shadow: var(--samos-shadow);
}

body.samos-modern .main-header li.user-header {
    background: var(--samos-primary) !important;
}

body.samos-modern .main-sidebar {
    width: var(--samos-sidebar-width);
    padding-top: var(--samos-header-height);
    background: var(--samos-sidebar) !important;
}

body.samos-modern .sidebar {
    padding: 12px 12px 20px;
}

body.samos-modern .user-panel {
    min-height: 72px;
    margin: 0 0 12px;
    padding: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
}

body.samos-modern .user-panel > .info {
    color: var(--samos-sidebar-text);
}

body.samos-modern .user-panel > .image > img {
    width: 40px;
    height: 40px;
}

body.samos-modern .sidebar-form {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14) !important;
    border-radius: 9px;
}

body.samos-modern .sidebar-form input[type="text"],
body.samos-modern .sidebar-form .btn {
    height: 40px;
    color: var(--samos-sidebar-text) !important;
    background: rgba(255, 255, 255, .07) !important;
}

body.samos-modern .sidebar-form input::placeholder {
    color: rgba(232, 244, 241, .65);
}

body.samos-modern .sidebar-menu > li.header {
    padding: 14px 12px 7px;
    color: rgba(224, 241, 237, .56) !important;
    background: transparent !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

body.samos-modern .sidebar-menu > li {
    margin: 3px 0;
}

body.samos-modern .sidebar-menu > li > a {
    min-height: 44px;
    padding: 12px 12px;
    color: var(--samos-sidebar-text) !important;
    border-left: 0 !important;
    border-radius: 9px;
    font-weight: 600;
}

body.samos-modern .sidebar-menu > li > a > .fa {
    width: 22px;
    color: rgba(222, 240, 236, .78);
}

body.samos-modern .sidebar-menu > li:hover > a,
body.samos-modern .sidebar-menu > li.active > a {
    color: #fff !important;
    background: var(--samos-sidebar-active) !important;
}

body.samos-modern .sidebar-menu > li.active > a {
    box-shadow: inset 3px 0 0 var(--samos-accent);
}

body.samos-modern .sidebar-menu > li > .treeview-menu {
    margin: 4px 0 6px 10px;
    padding: 4px 0 4px 9px;
    background: rgba(0, 0, 0, .1) !important;
    border-left: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0 8px 8px 0;
}

body.samos-modern .sidebar-menu .treeview-menu > li > a {
    padding: 9px 10px;
    color: rgba(224, 241, 237, .82) !important;
    border-radius: 7px;
}

body.samos-modern .content-wrapper,
body.samos-modern .main-footer {
    margin-left: var(--samos-sidebar-width);
}

body.samos-modern .content-wrapper {
    min-height: calc(100vh - var(--samos-header-height));
    padding-top: var(--samos-header-height);
    color: var(--samos-text);
    background: var(--samos-canvas) !important;
}

body.samos-modern .main-footer {
    color: var(--samos-text-muted);
    background: var(--samos-surface);
    border-top: 1px solid var(--samos-border);
}

body.samos-modern.sidebar-collapse .main-header .logo {
    width: 50px;
}

body.samos-modern.sidebar-collapse .main-header .navbar {
    margin-left: 50px;
}

body.samos-modern.sidebar-collapse .main-sidebar {
    width: 50px;
}

body.samos-modern.sidebar-collapse .content-wrapper,
body.samos-modern.sidebar-collapse .main-footer {
    margin-left: 50px;
}

body.samos-modern.sidebar-collapse .samos-shell-brand__copy {
    display: none;
}

/* Header controls */

.samos-navbar-label {
    display: inline-block;
    padding: 23px 10px 0 18px;
    color: var(--samos-text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.samos-quick-order > a {
    margin: 12px 8px 0;
    min-height: 40px !important;
    padding: 10px 16px !important;
    color: #183d38 !important;
    background: var(--samos-accent) !important;
    border-radius: 9px;
    font-weight: 700;
}

.samos-quick-order > a:hover,
.samos-quick-order > a:focus {
    color: #0b2a27 !important;
    background: var(--samos-accent-strong) !important;
}

.samos-display-menu .dropdown-menu {
    width: 274px;
    padding: 8px;
}

.samos-display-menu__title {
    padding: 9px 10px 7px;
    color: var(--samos-text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.samos-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.samos-choice-grid button,
.samos-density-choice {
    color: var(--samos-text);
    background: var(--samos-surface-muted);
    border: 1px solid var(--samos-border);
    border-radius: 7px;
}

.samos-choice-grid button {
    padding: 9px 5px;
    font-size: 12px;
}

.samos-density-list {
    display: grid;
    gap: 6px;
}

.samos-density-choice {
    width: 100%;
    padding: 9px 10px;
    text-align: left;
}

.samos-choice-grid button.is-active,
.samos-density-choice.is-active {
    color: var(--samos-primary-strong);
    background: var(--samos-primary-soft);
    border-color: var(--samos-primary);
    box-shadow: inset 0 0 0 1px var(--samos-primary);
}

/* Legacy content restyling */

body.samos-modern .content-header {
    padding: 26px 28px 12px;
}

body.samos-modern .content-header > h1 {
    color: var(--samos-text);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.02em;
}

body.samos-modern .content-header > h1 > small {
    color: var(--samos-text-muted);
}

body.samos-modern .content-header > .breadcrumb {
    top: 30px;
    right: 28px;
    padding: 5px 0;
    color: var(--samos-text-muted);
    background: transparent;
}

body.samos-modern .content-header > .breadcrumb > li > a {
    color: var(--samos-text-muted);
}

body.samos-modern .content {
    padding: 14px 28px 28px;
}

body.samos-modern .box,
body.samos-modern .invoice,
body.samos-modern .modal-content,
body.samos-modern .small-box {
    color: var(--samos-text);
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: var(--samos-radius);
    box-shadow: var(--samos-shadow);
}

body.samos-modern .box {
    overflow: visible;
}

body.samos-modern .box.box-primary,
body.samos-modern .box.box-solid.box-primary {
    border-top-color: var(--samos-primary);
}

body.samos-modern .box-header {
    min-height: 48px;
    padding: 14px 16px;
    color: var(--samos-text);
    border-bottom: 1px solid var(--samos-border);
}

body.samos-modern .box-header.with-border {
    border-bottom-color: var(--samos-border);
}

body.samos-modern .box-header > .box-title {
    color: var(--samos-text);
    font-size: 17px;
    font-weight: 700;
}

body.samos-modern .box.box-solid.box-primary > .box-header,
body.samos-modern .box.box-solid.box-info > .box-header {
    color: #fff;
    background: var(--samos-primary);
}

body.samos-modern .box.box-solid.box-primary > .box-header .box-title,
body.samos-modern .box.box-solid.box-info > .box-header .box-title {
    color: #fff;
}

body.samos-modern .box-body {
    padding: 17px;
}

body.samos-modern .form-control,
body.samos-modern select.form-control,
body.samos-modern .input-group .form-control {
    min-height: 40px;
    color: var(--samos-text);
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: 7px;
    box-shadow: none;
}

body.samos-modern textarea.form-control {
    min-height: 90px;
}

body.samos-modern .form-control:focus {
    border-color: var(--samos-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--samos-primary) 16%, transparent);
}

body.samos-modern label {
    color: var(--samos-text);
    font-weight: 600;
}

body.samos-modern .help-block {
    color: var(--samos-text-muted);
}

body.samos-modern .btn {
    min-height: 38px;
    border-radius: 7px;
    font-weight: 600;
}

body.samos-modern .btn-primary {
    color: #fff;
    background: var(--samos-primary);
    border-color: var(--samos-primary);
}

body.samos-modern .btn-primary:hover,
body.samos-modern .btn-primary:focus,
body.samos-modern .btn-primary:active {
    color: #fff;
    background: var(--samos-primary-strong);
    border-color: var(--samos-primary-strong);
}

body.samos-modern .btn-default {
    color: var(--samos-text);
    background: var(--samos-surface);
    border-color: var(--samos-border);
}

body.samos-modern .btn-default:hover,
body.samos-modern .btn-default:focus {
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-color: var(--samos-primary);
}

body.samos-modern .btn-danger {
    background: var(--samos-danger);
    border-color: var(--samos-danger);
}

body.samos-modern .btn-info {
    background: var(--samos-info);
    border-color: var(--samos-info);
}

body.samos-modern .table {
    color: var(--samos-text);
    background: var(--samos-surface);
}

body.samos-modern .table > thead > tr > th {
    height: 42px;
    padding: 11px 12px;
    color: var(--samos-text-muted);
    background: var(--samos-surface-muted);
    border-color: var(--samos-border);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    vertical-align: middle;
}

body.samos-modern .table > tbody > tr > td {
    height: var(--samos-row-height);
    padding: 11px 12px;
    border-color: var(--samos-border);
    vertical-align: middle;
}

body.samos-modern .table-hover > tbody > tr:hover {
    background: var(--samos-primary-soft);
}

body.samos-modern .table .bg-primary,
body.samos-modern .bg-primary {
    color: #fff !important;
    background: var(--samos-primary) !important;
}

body.samos-modern .pagination > li > a,
body.samos-modern .pagination > li > span {
    color: var(--samos-primary);
    background: var(--samos-surface);
    border-color: var(--samos-border);
}

body.samos-modern .pagination > .active > a,
body.samos-modern .pagination > .active > span {
    color: #fff;
    background: var(--samos-primary);
    border-color: var(--samos-primary);
}

body.samos-modern .nav-tabs {
    border-bottom-color: var(--samos-border);
}

body.samos-modern .nav-tabs > li > a {
    color: var(--samos-text-muted);
    border-radius: 7px 7px 0 0;
}

body.samos-modern .nav-tabs > li.active > a {
    color: var(--samos-primary);
    background: var(--samos-surface);
    border-color: var(--samos-border) var(--samos-border) var(--samos-surface);
}

body.samos-modern .alert {
    border: 0;
    border-radius: var(--samos-radius-sm);
}

body.samos-modern .modal-header,
body.samos-modern .modal-footer {
    border-color: var(--samos-border);
}

/* Login */

.samos-login-wrapper {
    display: grid;
    grid-template-columns: minmax(360px, 1.1fr) minmax(420px, .9fr);
    min-height: 100vh;
    color: var(--samos-text);
    background: var(--samos-canvas);
}

.samos-login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 48px clamp(38px, 7vw, 110px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 38%, rgba(233, 185, 73, .22), transparent 22%),
        linear-gradient(145deg, #073d39 0%, #006d67 100%);
}

.samos-login-brand-panel::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: 9%;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow:
        0 0 0 62px rgba(255, 255, 255, .025),
        0 0 0 124px rgba(255, 255, 255, .02);
}

.samos-login-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .16em;
}

.samos-login-brand .samos-shell-brand__mark {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.samos-login-message {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.samos-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--samos-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.samos-login-message h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 650;
    letter-spacing: -.04em;
    line-height: 1.03;
}

.samos-login-message p {
    max-width: 540px;
    color: rgba(239, 250, 247, .78);
    font-size: 18px;
    line-height: 1.65;
}

.samos-login-trust {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(239, 250, 247, .7);
    font-size: 13px;
}

.samos-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 42px;
    background: var(--samos-surface);
}

.samos-login-form-panel .login-box {
    width: min(100%, 430px);
    margin: 0;
    border: 0 !important;
}

.samos-login-form-panel .login-logo {
    margin-bottom: 22px;
}

.samos-login-form-panel .login-logo img {
    max-width: 210px;
    max-height: 70px;
    object-fit: contain;
}

.samos-login-card {
    overflow: hidden;
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: 16px;
    box-shadow: var(--samos-shadow);
}

.samos-login-card__heading {
    padding: 25px 28px 7px;
}

.samos-login-card__heading h2 {
    margin: 0 0 6px;
    color: var(--samos-text);
    font-size: 27px;
    font-weight: 700;
}

.samos-login-card__heading p {
    color: var(--samos-text-muted);
}

.samos-login-card .box-body {
    padding: 18px 28px 28px !important;
}

.samos-login-card .profile-user-img {
    display: none;
}

.samos-login-card .form-control {
    height: 48px;
    padding-left: 14px;
}

.samos-login-card .btn {
    height: 48px;
}

.samos-login-footnote {
    margin-top: 18px;
    color: var(--samos-text-muted);
    font-size: 12px;
    text-align: center;
}

/* User/access integration */

.samos-security-callout {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
    padding: 15px 17px;
    color: var(--samos-text);
    background: var(--samos-primary-soft);
    border: 1px solid color-mix(in srgb, var(--samos-primary) 30%, var(--samos-border));
    border-radius: var(--samos-radius);
}

.samos-security-callout > .fa {
    margin-top: 2px;
    color: var(--samos-primary);
    font-size: 20px;
}

.samos-security-callout strong {
    display: block;
    margin-bottom: 3px;
}

.samos-security-callout p {
    margin: 0;
    color: var(--samos-text-muted);
}

.samos-password-guide {
    margin-top: 9px;
    padding: 12px 13px;
    color: var(--samos-text-muted);
    background: var(--samos-surface-muted);
    border: 1px solid var(--samos-border);
    border-radius: 8px;
    font-size: 12px;
}

.samos-password-guide strong {
    display: block;
    margin-bottom: 4px;
    color: var(--samos-text);
}

.samos-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    color: var(--samos-success);
    background: color-mix(in srgb, var(--samos-success) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--samos-success) 28%, transparent);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.samos-status-pill.is-warning {
    color: var(--samos-warning);
    background: color-mix(in srgb, var(--samos-warning) 13%, transparent);
    border-color: color-mix(in srgb, var(--samos-warning) 28%, transparent);
}

.samos-status-pill.is-danger {
    color: var(--samos-danger);
    background: color-mix(in srgb, var(--samos-danger) 13%, transparent);
    border-color: color-mix(in srgb, var(--samos-danger) 28%, transparent);
}

.samos-status-pill.is-staging {
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-color: color-mix(in srgb, var(--samos-primary) 28%, transparent);
}

/* Classic operations shell */

.samos-navbar-context {
    display: inline-flex;
    align-items: center;
    min-height: var(--samos-header-height);
    gap: 7px;
    padding: 0 10px;
    color: var(--samos-text-muted);
    font-size: 12px;
}

.samos-navbar-context__root {
    color: var(--samos-text-muted);
}

.samos-navbar-context__separator {
    color: var(--samos-border-strong);
}

.samos-navbar-context__page {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.samos-navbar-context__page small {
    color: var(--samos-text-muted);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.samos-navbar-context__page strong {
    max-width: 260px;
    overflow: hidden;
    color: var(--samos-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.samos-modern .sidebar {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--samos-header-height));
}

body.samos-modern .sidebar > .sidebar-menu {
    flex: 0 1 auto;
}

.samos-sidebar-quick-links {
    margin: 15px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.samos-sidebar-quick-links__label {
    display: block;
    padding: 0 12px 7px;
    color: rgba(224, 241, 237, .56);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .13em;
}

.samos-sidebar-quick-links__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.samos-sidebar-quick-links__list a {
    display: flex;
    align-items: center;
    min-height: 38px;
    gap: 10px;
    padding: 8px 12px;
    color: var(--samos-sidebar-text) !important;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.samos-sidebar-quick-links__list a:hover,
.samos-sidebar-quick-links__list a:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .08);
}

.samos-sidebar-quick-links__list i {
    width: 20px;
    color: rgba(222, 240, 236, .78);
    text-align: center;
}

.samos-sidebar-status {
    display: flex;
    align-items: center;
    min-height: 58px;
    gap: 10px;
    margin-top: auto;
    padding: 11px 12px;
    color: var(--samos-sidebar-text);
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 5px;
}

.samos-sidebar-status__indicator {
    width: 9px;
    height: 9px;
    background: var(--samos-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217, 164, 65, .13);
}

.samos-sidebar-status__copy strong,
.samos-sidebar-status__copy small {
    display: block;
}

.samos-sidebar-status__copy strong {
    color: #e8f2f0;
    font-size: 11px;
}

.samos-sidebar-status__copy small {
    margin-top: 2px;
    color: #8db1ac;
    font-size: 10px;
}

body.samos-modern .box,
body.samos-modern .panel,
body.samos-modern .modal-content,
body.samos-modern .form-control,
body.samos-modern .btn {
    border-radius: var(--samos-radius-sm);
}

body.samos-modern .box {
    border-top-width: 1px;
}

body.samos-modern .box.box-primary {
    border-top-color: var(--samos-primary);
}

body.samos-modern .table > thead > tr > th {
    color: var(--samos-text-muted);
    background: var(--samos-surface-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

body.samos-modern .table > tbody > tr:hover {
    background: color-mix(in srgb, var(--samos-primary-soft) 48%, var(--samos-surface));
}

/* Workspace home */

.samos-home-header {
    padding-bottom: 7px !important;
}

.samos-home-header > h1 {
    margin-top: 4px !important;
}

.samos-page-summary {
    margin: 5px 0 0;
    color: var(--samos-text-muted);
    font-size: 14px;
}

.samos-home {
    padding-top: 10px !important;
}

.samos-home-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 112px;
    gap: 22px;
    margin-bottom: 18px;
    padding: 20px 22px;
    color: #fff;
    background: var(--samos-primary-strong);
    border: 1px solid color-mix(in srgb, var(--samos-primary-strong) 80%, #000);
    border-radius: var(--samos-radius);
    box-shadow: var(--samos-shadow);
}

.samos-home-context .samos-eyebrow {
    color: var(--samos-accent);
}

.samos-home-context h2 {
    margin: 6px 0 4px;
    color: #fff;
    font-size: 24px;
    font-weight: 650;
}

.samos-home-context p {
    margin: 0;
    color: rgba(231, 244, 241, .82);
}

.samos-home-context__actions {
    display: flex;
    gap: 8px;
}

.samos-home-context__actions .btn {
    min-height: 40px;
    padding: 9px 14px;
    font-weight: 700;
}

.samos-home-context__actions .btn-default {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .3);
}

.samos-home-context__actions .btn-primary {
    color: #263b36;
    background: var(--samos-accent);
    border-color: var(--samos-accent);
}

.samos-home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin: 0 0 10px;
}

.samos-home-section-heading h2 {
    margin: 3px 0 0;
    color: var(--samos-text);
    font-size: 18px;
}

.samos-home-section-heading > span {
    color: var(--samos-text-muted);
    font-size: 12px;
}

.samos-home-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.samos-home-shortcuts > a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 16px;
    align-items: center;
    min-height: 84px;
    gap: 10px;
    padding: 12px;
    color: var(--samos-text) !important;
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: var(--samos-radius);
    box-shadow: 0 2px 5px rgba(26, 50, 46, .04);
}

.samos-home-shortcuts > a:hover,
.samos-home-shortcuts > a:focus {
    background: var(--samos-surface-muted);
    border-color: color-mix(in srgb, var(--samos-primary) 48%, var(--samos-border));
}

.samos-home-shortcuts strong,
.samos-home-shortcuts small {
    display: block;
}

.samos-home-shortcuts strong {
    color: var(--samos-text);
    font-size: 13px;
}

.samos-home-shortcuts small {
    margin-top: 4px;
    color: var(--samos-text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.samos-home-shortcuts > a > .fa-angle-right {
    color: var(--samos-text-muted);
}

.samos-home-shortcut__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-radius: var(--samos-radius-sm);
    font-size: 17px;
}

.samos-home-shortcut__icon.is-blue {
    color: var(--samos-info);
    background: color-mix(in srgb, var(--samos-info) 12%, transparent);
}

.samos-home-shortcut__icon.is-gold {
    color: var(--samos-warning);
    background: color-mix(in srgb, var(--samos-accent) 22%, transparent);
}

.samos-home-shortcut__icon.is-neutral {
    color: var(--samos-text-muted);
    background: var(--samos-surface-muted);
}

.samos-home-grid {
    margin-right: -7px;
    margin-left: -7px;
}

.samos-home-grid > [class*="col-"] {
    padding-right: 7px;
    padding-left: 7px;
}

.samos-home-panel {
    min-height: 290px;
}

.samos-staging-panel {
    border-top-color: var(--samos-accent) !important;
}

.samos-staging-panel .samos-check-list > li > i {
    color: var(--samos-primary);
}

.samos-home-panel .box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 14px;
    padding: 12px 15px;
}

.samos-home-panel .box-title {
    display: block;
    margin-top: 3px;
    color: var(--samos-text);
    font-size: 16px;
    font-weight: 700;
}

.samos-box-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
}

.samos-announcement {
    margin: 0 !important;
    padding: 13px 2px !important;
    border-bottom: 1px solid var(--samos-border);
}

.samos-announcement:last-child {
    border-bottom: 0;
}

.samos-announcement__date {
    display: block;
    margin-bottom: 5px;
    color: var(--samos-text-muted);
    font-size: 11px;
    font-weight: 650;
}

.samos-announcement p {
    margin: 0;
    color: var(--samos-text);
}

.samos-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: var(--samos-text-muted);
    text-align: center;
}

.samos-empty-state > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 9px;
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-radius: var(--samos-radius-sm);
}

.samos-empty-state strong,
.samos-empty-state small {
    display: block;
}

.samos-empty-state strong {
    color: var(--samos-text);
}

.samos-empty-state small {
    margin-top: 4px;
}

.samos-check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.samos-check-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    min-height: 65px;
    align-items: start;
    gap: 9px;
    padding: 11px 0;
    border-bottom: 1px solid var(--samos-border);
}

.samos-check-list li:last-child {
    border-bottom: 0;
}

.samos-check-list > li > i {
    padding-top: 2px;
    color: var(--samos-success);
    font-size: 17px;
}

.samos-check-list strong,
.samos-check-list small {
    display: block;
}

.samos-check-list strong {
    color: var(--samos-text);
    font-size: 13px;
}

.samos-check-list small {
    margin-top: 4px;
    color: var(--samos-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

/* Report Studio pilot */

.samos-report-studio {
    margin: 10px 25px 18px;
}

.samos-report-studio .box {
    margin-bottom: 0;
}

.samos-report-builder {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 20px;
}

.samos-report-field-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 8px;
}

.samos-report-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 10px;
    background: var(--samos-surface-muted);
    border: 1px solid var(--samos-border);
    border-radius: 8px;
}

.samos-report-field.is-selected {
    background: var(--samos-primary-soft);
    border-color: color-mix(in srgb, var(--samos-primary) 50%, var(--samos-border));
}

.samos-report-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
}

.samos-report-field__actions {
    display: flex;
    gap: 3px;
}

.samos-report-field__actions button {
    width: 26px;
    height: 26px;
    padding: 0;
    color: var(--samos-text-muted);
    background: var(--samos-surface);
    border: 1px solid var(--samos-border);
    border-radius: 5px;
}

.samos-report-field__actions button:disabled {
    opacity: .35;
}

.samos-report-presets {
    padding: 15px;
    background: var(--samos-surface-muted);
    border: 1px solid var(--samos-border);
    border-radius: 10px;
}

.samos-report-presets h4 {
    margin: 0 0 12px;
    color: var(--samos-text);
    font-weight: 700;
}

.samos-report-presets .form-group:last-child {
    margin-bottom: 0;
}

.samos-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.samos-report-actions .btn {
    flex: 1 1 170px;
}

.samos-report-note {
    margin: 11px 0 0;
    color: var(--samos-text-muted);
    font-size: 12px;
}

.samos-selected-count {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    color: var(--samos-primary);
    background: var(--samos-primary-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

html[data-samos-density="compact"] body.samos-modern .box-body {
    padding: 12px;
}

html[data-samos-density="compact"] body.samos-modern .content {
    padding-top: 9px;
}

html[data-samos-density="compact"] body.samos-modern .form-group {
    margin-bottom: 10px;
}

/* Responsive behaviour */

@media (min-width: 768px) {
    body.samos-modern.sidebar-collapse .samos-sidebar-quick-links__label,
    body.samos-modern.sidebar-collapse .samos-sidebar-quick-links__list span,
    body.samos-modern.sidebar-collapse .samos-sidebar-status__copy {
        display: none;
    }

    body.samos-modern.sidebar-collapse .samos-sidebar-quick-links__list a {
        justify-content: center;
        padding-right: 6px;
        padding-left: 6px;
    }

    body.samos-modern.sidebar-collapse .samos-sidebar-quick-links__list i {
        width: auto;
        font-size: 15px;
    }

    body.samos-modern.sidebar-collapse .samos-sidebar-status {
        justify-content: center;
        min-height: 46px;
        padding: 8px 4px;
    }
}

@media (max-width: 1199px) {
    .samos-home-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    body.samos-modern .content-header > .breadcrumb {
        position: static;
        margin-top: 9px;
    }

    .samos-navbar-label,
    .samos-quick-order {
        display: none !important;
    }

    .samos-report-builder {
        grid-template-columns: 1fr;
    }

    .samos-report-field-list {
        grid-template-columns: repeat(2, minmax(145px, 1fr));
    }

    .samos-home-panel {
        min-height: 0;
    }
}

@media (max-width: 767px) {
    .samos-login-wrapper {
        display: block;
    }

    .samos-login-brand-panel {
        min-height: 300px;
        padding: 30px 25px;
    }

    .samos-login-message h1 {
        font-size: 36px;
    }

    .samos-login-message p {
        font-size: 15px;
    }

    .samos-login-trust {
        display: none;
    }

    .samos-login-form-panel {
        min-height: auto;
        padding: 30px 18px 45px;
    }

    body.samos-modern .main-header .logo {
        width: 50px;
        padding: 0 8px;
    }

    body.samos-modern .main-header .navbar {
        margin-left: 50px;
    }

    body.samos-modern .samos-shell-brand__copy {
        display: none;
    }

    body.samos-modern .main-sidebar {
        padding-top: var(--samos-header-height);
    }

    body.samos-modern .content-wrapper,
    body.samos-modern .main-footer {
        margin-left: 0;
    }

    body.samos-modern .content-header {
        padding: 22px 16px 10px;
    }

    body.samos-modern .content {
        padding: 10px 16px 22px;
    }

    body.samos-modern .content-header > h1 {
        font-size: 22px;
    }

    .samos-report-studio {
        margin: 10px 16px 16px;
    }

    .samos-report-field-list {
        grid-template-columns: 1fr;
    }

    .samos-home-context {
        align-items: flex-start;
        min-height: 0;
        padding: 18px;
        flex-direction: column;
    }

    .samos-home-context h2 {
        font-size: 21px;
    }

    .samos-home-context__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .samos-home-context__actions .btn {
        flex: 1 1 150px;
    }

    .samos-home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .samos-home-shortcuts {
        grid-template-columns: 1fr;
    }

    .samos-home-shortcuts > a {
        min-height: 76px;
    }

    .samos-display-menu .dropdown-menu {
        position: fixed;
        top: var(--samos-header-height);
        right: 8px;
        left: auto;
    }
}

@media (max-width: 480px) {
    .samos-login-brand-panel {
        min-height: 260px;
    }

    .samos-login-message h1 {
        font-size: 30px;
    }

    body.samos-modern .navbar-custom-menu > .navbar-nav > li > .dropdown-menu {
        right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.samos-modern *,
    body.samos-modern *::before,
    body.samos-modern *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .samos-report-studio,
    .samos-security-callout,
    .samos-display-menu,
    .samos-quick-order {
        display: none !important;
    }
}
