:root {
    --ink: #14283d;
    --ink-soft: #30475d;
    --muted: #738396;
    --line: #e3eaf0;
    --paper: #ffffff;
    --canvas: #f4f7fa;
    --navy: #102c46;
    --navy-2: #173d5a;
    --teal: #168b83;
    --teal-dark: #0e6e68;
    --teal-light: #eaf7f5;
    --gold: #c99b52;
    --green: #18815f;
    --red: #b54b4b;
    --orange: #bd7a27;
    --shadow-sm: 0 4px 14px rgba(20, 40, 61, .05);
    --shadow: 0 12px 35px rgba(20, 40, 61, .08);
    --shadow-lg: 0 20px 55px rgba(20, 40, 61, .11);
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--canvas);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5 {
    margin-top: 0;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    letter-spacing: -.025em;
}

h1 {
    font-size: 30px;
    font-weight: 800;
}

h2 {
    font-size: 22px;
    font-weight: 750;
}

h3 {
    font-size: 17px;
    font-weight: 750;
}

p {
    margin-top: 0;
}

a {
    color: var(--teal-dark);
    text-decoration: none;
}

    a:hover {
        color: var(--teal);
    }

/* =========================
   AUTH / LOGIN
   ========================= */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(430px, .92fr);
    background: #fff;
}

.auth-aside {
    position: relative;
    overflow: hidden;
    padding: 56px clamp(38px, 7vw, 105px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: radial-gradient(circle at 88% 18%, rgba(45, 190, 175, .18), transparent 28%), linear-gradient(145deg, #0d2941, #164961 62%, #157a74);
}

    .auth-aside:before {
        content: "";
        position: absolute;
        width: 560px;
        height: 560px;
        border: 1px solid rgba(255, 255, 255, .10);
        border-radius: 50%;
        right: -270px;
        top: 12%;
        box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.018);
    }

    .auth-aside:after {
        content: "";
        position: absolute;
        width: 260px;
        height: 260px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 50%;
        right: 40px;
        bottom: 80px;
    }

    .auth-aside > * {
        position: relative;
        z-index: 1;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    font-family: "Manrope", "Segoe UI", sans-serif;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(145deg, #2bb6a9, #0c7770);
    box-shadow: inset 0 1px rgba(255,255,255,.35);
}

.brand small {
    display: block;
    margin-top: -2px;
    color: #abc1ce;
    font: 500 9px "DM Sans", sans-serif;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-copy {
    max-width: 520px;
}

    .auth-copy .eyebrow {
        color: #8de0d5;
    }

    .auth-copy h1 {
        max-width: 580px;
        margin: 13px 0 18px;
        font-size: clamp(36px, 4.2vw, 56px);
        line-height: 1.08;
        color: #fff;
    }

    .auth-copy p {
        max-width: 470px;
        color: #c6dbe3;
        font-size: 16px;
    }

.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 25px;
    color: #e3eff2;
    font-size: 13px;
}

.feature-check {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #9ae6da;
    background: rgba(118,220,207,.14);
}

.auth-foot {
    color: #a9bfcb;
    font-size: 11px;
}

.auth-main {
    display: grid;
    place-items: center;
    padding: 40px;
    background: radial-gradient(circle at 80% 5%, rgba(22,139,131,.06), transparent 25%), #fff;
}

.auth-form {
    width: min(430px, 100%);
}

    .auth-form .eyebrow {
        margin-bottom: 9px;
    }

    .auth-form h2 {
        margin-bottom: 8px;
        font-size: 29px;
    }

    .auth-form > p {
        margin-bottom: 29px;
        color: var(--muted);
    }

    .auth-form .field {
        margin-bottom: 19px;
    }

    .auth-form .btn {
        width: 100%;
        margin-top: 8px;
    }

.login-logo-mobile {
    display: none;
}

.auth-note {
    margin-top: 21px;
    color: #8594a2;
    font-size: 12px;
    text-align: center;
}

.remember {
    color: #687b8b;
    font-size: 13px;
}

.msg {
    display: block;
    margin: 10px 0 15px;
    padding: 10px 12px;
    border: 1px solid #f0d2d2;
    border-radius: 8px;
    color: #a23f3f;
    background: #fff7f7;
    font-size: 13px;
    font-weight: 600;
}

/* =========================
   APP SHELL
   ========================= */

.app-wrapper {
    min-height: 100vh;
    display: flex;
    background: var(--canvas);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: 255px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #102c46 0%, #0d263d 100%);
    color: #fff;
    box-shadow: 8px 0 30px rgba(13, 38, 61, .08);
    transition: width .22s ease, transform .22s ease;
}

.brand {
    min-height: 76px;
    padding: 18px 21px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.sidebar .brand {
    justify-content: flex-start;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .brand-text strong {
        color: #fff;
        font-size: 15px;
    }

    .brand-text span {
        margin-top: 3px;
        color: #91aabd;
        font-size: 10px;
        letter-spacing: .07em;
        text-transform: uppercase;
    }

.sidebar-menu {
    flex: 1;
    padding: 23px 13px;
    overflow-y: auto;
}

.menu-heading {
    padding: 8px 13px 9px;
    color: #6f8ba0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    margin: 3px 0;
    padding: 0 13px;
    border-radius: 8px;
    color: #b9cbd6 !important;
    font-size: 13px;
    font-weight: 600;
    transition: background .16s, color .16s, transform .16s;
}

    .menu-item:hover {
        color: #fff !important;
        background: rgba(255,255,255,.07);
        transform: translateX(2px);
        text-decoration: none;
    }

    .menu-item.active {
        color: #fff !important;
        background: linear-gradient(90deg, rgba(22,139,131,.35), rgba(22,139,131,.12));
    }

        .menu-item.active:before {
            content: "";
            position: absolute;
            left: 0;
            top: 8px;
            bottom: 8px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: #46c4b8;
        }

.main-wrapper {
    width: calc(100% - 255px);
    min-height: 100vh;
    margin-left: 255px;
    display: flex;
    flex-direction: column;
    transition: margin-left .22s ease, width .22s ease;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    min-height: 72px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
}

.topbar-left {
    gap: 17px;
}

.topbar-right {
    gap: 18px;
}

.sidebar-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}

    .sidebar-toggle:hover {
        border-color: #c9d8e2;
        background: #f8fafb;
    }

.page-title {
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.notification {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: #546a7c;
}

.notification-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--teal);
    font-size: 8px;
    font-weight: 800;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--teal), var(--teal-dark));
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(22,139,131,.18);
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

    .user-info strong {
        color: var(--ink);
        font-size: 12px;
    }

    .user-info span {
        margin-top: 3px;
        color: var(--muted);
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .07em;
    }

.logout-btn {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e3e8ed;
    border-radius: 7px;
    color: #637789 !important;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

    .logout-btn:hover {
        color: var(--red) !important;
        border-color: #efd0d0;
        background: #fff8f8;
        text-decoration: none;
    }

.content-area {
    flex: 1;
    padding: 30px;
}

.footer {
    min-height: 52px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: #8998a6;
    background: #fff;
    font-size: 11px;
}

/* =========================
   PAGE CONTENT
   ========================= */

.page-header {
    margin-bottom: 24px;
}

.page-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.page-header h1 {
    margin-bottom: 5px;
    font-size: 27px;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.eyebrow,
.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--teal-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.card {
    margin-bottom: 20px;
    padding: 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

    .card:hover {
        box-shadow: var(--shadow);
    }

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

    .card-heading h2 {
        margin: 0;
        font-size: 17px;
    }

    .card-heading p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 12px;
    }

/* =========================
   DASHBOARD STAT CARDS
   ========================= */

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 21px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

    .stat-card:after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        right: -45px;
        bottom: -50px;
        border-radius: 50%;
        background: var(--teal-light);
    }

.stat-label {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stat-value {
    position: relative;
    z-index: 1;
    margin-top: 7px;
    color: var(--ink);
    font-family: "Manrope", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.stat-meta {
    position: relative;
    z-index: 1;
    margin-top: 11px;
    color: #8b9aa7;
    font-size: 11px;
}

.stat-card.teal {
    border-top: 3px solid var(--teal);
}

.stat-card.green {
    border-top: 3px solid var(--green);
}

.stat-card.orange {
    border-top: 3px solid var(--orange);
}

.stat-card.red {
    border-top: 3px solid var(--red);
}

/* =========================
   HERO
   ========================= */

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 21px;
    padding: 27px 29px;
    border-radius: 13px;
    color: #fff;
    background: radial-gradient(circle at 90% 15%, rgba(61,202,188,.16), transparent 24%), linear-gradient(115deg, #153b57, #17616c);
    box-shadow: var(--shadow);
}

    .hero:after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        right: 4%;
        top: -155px;
        border: 1px solid rgba(255,255,255,.11);
        border-radius: 50%;
        box-shadow: 0 0 0 30px rgba(255,255,255,.025), 0 0 0 60px rgba(255,255,255,.02);
    }

    .hero > * {
        position: relative;
        z-index: 1;
    }

    .hero .eyebrow {
        color: #8de0d5;
    }

    .hero h2 {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .hero p {
        max-width: 690px;
        margin: 0;
        color: #c8dce3;
        font-size: 13px;
    }

/* =========================
   BUTTONS
   ========================= */

.btn,
input[type=submit].btn {
    min-height: 41px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    background: var(--teal);
    box-shadow: 0 5px 13px rgba(22,139,131,.16);
    font: 700 12px "DM Sans", sans-serif;
    cursor: pointer;
    transition: all .16s ease;
}

    .btn:hover,
    input[type=submit].btn:hover {
        color: #fff !important;
        background: var(--teal-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 17px rgba(22,139,131,.20);
    }

    .btn.secondary {
        color: #40576b !important;
        background: #eef3f6;
        box-shadow: none;
    }

        .btn.secondary:hover {
            color: #213d55 !important;
            background: #e3ebef;
        }

    .btn.outline {
        color: var(--teal-dark) !important;
        border: 1px solid #b8ddd8;
        background: #fff;
        box-shadow: none;
    }

        .btn.outline:hover {
            background: var(--teal-light);
        }

/* =========================
   FORMS
   ========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0 18px;
}

.field {
    min-width: 0;
    margin-bottom: 17px;
}

    .field label,
    .field-label {
        display: block;
        margin-bottom: 7px;
        color: #354b61;
        font-size: 11px;
        font-weight: 800;
    }

input[type=text],
input[type=password],
input[type=email],
input[type=date],
input[type=number],
select,
textarea {
    width: 100%;
    max-width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d7e0e8;
    border-radius: 7px;
    outline: none;
    color: var(--ink);
    background: #fff;
    font: inherit;
    transition: border-color .16s, box-shadow .16s;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

    input:focus,
    select:focus,
    textarea:focus {
        border-color: #58aaa3;
        box-shadow: 0 0 0 3px rgba(22,139,131,.10);
    }

input[type=checkbox] {
    width: 15px;
    height: 15px;
    accent-color: var(--teal);
    vertical-align: middle;
}

/* =========================
   TABLES
   ========================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    font-size: 12px;
}

    .table th,
    .table td {
        padding: 12px 14px;
        border-bottom: 1px solid #edf1f4;
        text-align: left;
        vertical-align: middle;
    }

    .table th {
        color: #687b8c;
        background: #f7fafb;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .09em;
        text-transform: uppercase;
        white-space: nowrap;
    }

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

    .table tbody tr:hover td {
        background: #fbfdfd;
    }

    .table td:first-child {
        color: #213d55;
        font-weight: 700;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.status-registered {
    color: #167253;
    background: #eaf8f2;
}

.status-objected {
    color: #9b651e;
    background: #fff5df;
}

.status-opposed {
    color: #a23f3f;
    background: #fff0f0;
}

.status-pending {
    color: #376078;
    background: #edf5fa;
}

/* =========================
   DETAIL / EMPTY STATES
   ========================= */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0 22px;
}

.detail-item {
    min-width: 0;
    padding: 13px 0;
    border-bottom: 1px solid #edf1f4;
    overflow-wrap: anywhere;
}

    .detail-item strong {
        display: block;
        margin-bottom: 5px;
        color: #788a9a;
        font-size: 9px;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .detail-item span {
        color: #213d55;
        font-weight: 600;
    }

.empty-note {
    padding: 35px 20px;
    border: 1px dashed #d5e0e7;
    border-radius: 9px;
    color: var(--muted);
    background: #fafcfd;
    text-align: center;
}

.muted {
    color: var(--muted);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 17px;
    font-size: 12px;
    font-weight: 800;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-info {
        display: none;
    }
}

@media (max-width: 850px) {
    .auth-shell {
        display: block;
        min-height: 100vh;
        padding: 20px 14px;
        background: var(--canvas);
    }

    .auth-aside {
        display: none;
    }

    .auth-main {
        min-height: calc(100vh - 40px);
        padding: 15px 0;
    }

    .auth-form {
        padding: 28px 22px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .login-logo-mobile {
        display: flex;
        margin-bottom: 28px;
    }
}

@media (max-width: 760px) {
    .sidebar {
        width: 255px;
        transform: translateX(-100%);
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .main-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        min-height: 64px;
        padding: 0 15px;
    }

    .topbar-right {
        gap: 9px;
    }

    .notification {
        display: none;
    }

    .logout-btn {
        padding: 0 10px;
    }

    .content-area {
        padding: 20px 14px;
    }

    .footer {
        padding: 0 15px;
        gap: 10px;
    }

    .page-header-top {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px 16px;
    }
}

@media (min-width: 761px) {
    .sidebar-collapsed .sidebar {
        width: 76px;
    }

    .sidebar-collapsed .main-wrapper {
        width: calc(100% - 76px);
        margin-left: 76px;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .menu-heading {
        display: none;
    }

    .sidebar-collapsed .brand {
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .sidebar-collapsed .menu-item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
        font-size: 0;
    }

        .sidebar-collapsed .menu-item:before {
            display: none;
        }
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 761px) {
    .sidebar.open {
        transform: none;
    }
}

.required {
    color: #b54b4b;
    margin-left: 2px;
}

/* ================================
   ADD TRADEMARK PAGE
   ================================ */

.page-header {
    margin-bottom: 24px;
}

.page-header-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-header .eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.page-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.card {
    margin-bottom: 22px;
    padding: 25px 27px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 35, 60, .045);
}

.card-heading {
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid #edf0f3;
}

    .card-heading > div {
        min-width: 0;
    }

.section-kicker {
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.card-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.card-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.field {
    min-width: 0;
    margin-bottom: 18px;
}

.grid .field {
    margin-bottom: 0;
}

.field label {
    display: block;
    margin: 0 0 7px;
    color: #26384b;
    font-size: 12px;
    font-weight: 700;
}

.required {
    color: #bd4b4b;
    margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input:not([type]),
.field select,
.field textarea,
.field .form-control {
    width: 100%;
    min-height: 43px;
    box-sizing: border-box;
    padding: 10px 13px;
    border: 1px solid #d8dee5;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #243447;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field textarea {
    min-height: 105px;
    resize: vertical;
}

    .field input:hover,
    .field select:hover,
    .field textarea:hover {
        border-color: #bcc6d1;
    }

    .field input:focus,
    .field select:focus,
    .field textarea:focus {
        border-color: var(--teal);
        box-shadow: 0 0 0 3px rgba(35, 128, 128, .10);
        background: #fff;
    }

    .field input::placeholder,
    .field textarea::placeholder {
        color: #9aa5b1;
    }

.field select {
    appearance: auto;
    cursor: pointer;
}

.msg {
    display: block;
    margin: 0 0 18px;
    padding: 11px 14px;
    border: 1px solid #ead4d4;
    border-radius: 8px;
    background: #fff8f8;
    color: #9b4141;
    font-size: 13px;
    line-height: 1.5;
}

.card:last-child {
    margin-bottom: 0;
}

    .card:last-child .card-heading {
        margin-bottom: 19px;
    }

    .card:last-child > div:last-child {
        display: flex;
        align-items: center;
        gap: 10px;
    }

.card .btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

    .card .btn.secondary {
        text-decoration: none;
    }

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

        .grid .field {
            margin-bottom: 18px;
        }

    .page-header-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 20px 17px;
        border-radius: 11px;
    }

    .page-header h1 {
        font-size: 25px;
    }

    .page-header-top > div:last-child {
        width: 100%;
    }

    .page-header-top .btn {
        width: 100%;
        text-align: center;
    }

    .card:last-child > div:last-child {
        align-items: stretch;
        flex-direction: column;
    }

    .card .btn {
        width: 100%;
        text-align: center;
    }
}

.date-field {
    position: relative;
    width: 100%;
}

    .date-field .date-picker {
        padding-right: 42px !important;
    }

.date-icon {
    position: absolute;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    color: #708090;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
}

.date-field:focus-within .date-icon {
    color: var(--teal);
}

.ui-datepicker {
    z-index: 99999 !important;
    width: 290px;
    padding: 10px;
    border: 1px solid #dce2e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 40, 65, .16);
    font-family: inherit;
}

    .ui-datepicker .ui-datepicker-header {
        padding: 8px;
        border: 0;
        border-radius: 7px;
        background: var(--navy);
        color: #fff;
    }

    .ui-datepicker .ui-datepicker-title {
        font-size: 13px;
        font-weight: 700;
    }

    .ui-datepicker .ui-datepicker-prev,
    .ui-datepicker .ui-datepicker-next {
        top: 8px;
        width: 28px;
        height: 28px;
        cursor: pointer;
    }

    .ui-datepicker table {
        margin: 8px 0 0;
        font-size: 12px;
    }

    .ui-datepicker th {
        padding: 6px 3px;
        color: #738091;
        font-weight: 700;
    }

    .ui-datepicker td {
        padding: 2px;
    }

        .ui-datepicker td a,
        .ui-datepicker td span {
            padding: 7px 5px;
            border: 0;
            border-radius: 6px;
            text-align: center;
        }

            .ui-datepicker td a:hover {
                border: 0;
                background: #edf7f7;
                color: var(--teal-dark);
            }

    .ui-datepicker .ui-state-active {
        border: 0;
        background: var(--teal);
        color: #fff;
    }

    .ui-datepicker .ui-state-highlight {
        border: 0;
        background: #f4f6f8;
        color: var(--navy);
    }


.trademark-form-card {
    margin-bottom: 20px;
}

.full-field {
    margin-top: 20px;
}

.trademark-form-card .card-heading {
    margin-bottom: 24px;
    padding: 0 0 18px;
    border-bottom: 1px solid #e3eaf0;
}

.trademark-form-card .section-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 6px 6px 6px 2px;
    background: var(--teal);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(22,139,131,.16);
}

.trademark-form-card .card-heading h2 {
    display: block;
    width: fit-content;
    margin: 0;
    padding: 7px 14px;
    border-left: 4px solid var(--teal);
    border-radius: 0 6px 6px 0;
    background: var(--teal-light);
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.35;
}

.trademark-form-card .card-heading p {
    margin: 8px 0 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.trademark-save-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfb 100%);
}

.save-summary {
    display: flex;
    align-items: center;
    gap: 14px;
}

.save-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: rgba(35, 128, 128, .10);
    color: var(--teal);
    font-size: 17px;
    font-weight: 800;
}

.save-summary h2 {
    margin: 0 0 3px;
    color: var(--navy);
    font-size: 16px;
    font-weight: 750;
}

.save-summary p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.save-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.trademark-save-card .btn {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 760px) {
    .trademark-save-card {
        align-items: stretch;
        flex-direction: column;
    }

    .save-actions {
        width: 100%;
        flex-direction: column;
    }

        .save-actions .btn {
            width: 100%;
            text-align: center;
        }
}

.common-modal {
    border: 0;
    border-radius: 14px;
    padding: 34px 30px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(20, 40, 65, .20);
}

.common-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal-light);
    color: var(--teal);
    font-size: 27px;
    font-weight: 800;
}

    .common-modal-icon.error {
        background: #fceeee;
        color: var(--red);
    }

    .common-modal-icon.warning {
        background: #fff6e8;
        color: var(--orange);
    }

.common-modal-body h3 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    font-weight: 800;
}

.common-modal-body p {
    margin: 10px auto 24px;
    max-width: 390px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.common-modal-actions {
    display: flex;
    justify-content: center;
}

/* Users GridView - Full Width */
.users-grid {
    width: 100% !important;
    table-layout: auto;
}

    .users-grid th,
    .users-grid td {
        white-space: nowrap;
    }


/* Users page: force GridView and its wrappers to full width */
.users-grid-card {
    width: 100% !important;
    max-width: none !important;
    display: block !important;
}

.users-grid-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
}

    .users-grid-wrapper > div {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
    }

    .users-grid-wrapper table.users-grid {
        display: table !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
    }

.users-form-actions {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
}

    .users-form-actions .btn {
        width: auto !important;
        min-width: 110px;
    }


/* =====================================================
   USERS ADD / EDIT PAGE — refined responsive layout
   ===================================================== */
.users-page {
    max-width: 1500px;
    margin: 0 auto;
    padding-top: 18px !important;
}

.users-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin: 0 0 25px;
    padding: 25px 28px;
    border: 1px solid #e2eaf0;
    border-radius: 16px;
    background: linear-gradient(120deg,#fff 0%,#f6fbfb 100%);
    box-shadow: 0 7px 22px rgba(20,40,61,.045);
}

.users-heading-copy {
    min-width: 0;
}

.users-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #168b83;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.users-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #168b83;
    box-shadow: 0 0 0 4px rgba(22,139,131,.10);
}

.users-page-header h1 {
    margin: 0;
    color: #102c46;
    font-size: 29px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.03em;
}

.users-page-header p {
    margin: 8px 0 0;
    color: #738396;
    font-size: 13px;
}

.users-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #dbe4eb;
    border-radius: 9px;
    background: #fff;
    color: #30475d !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .18s ease;
}

    .users-back-btn:hover {
        border-color: #b9dcd8;
        background: #f2fbfa;
        color: #0e6e68 !important;
    }

.users-form-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 260px;
    align-items: start;
    gap: 22px;
}

.users-form-main {
    min-width: 0;
}

.users-form-card {
    width: 100%;
    margin: 0 0 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e1e8ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,35,60,.045);
}

.users-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 21px 25px;
    border-bottom: 1px solid #edf1f4;
    background: linear-gradient(100deg,#fff 0%,#fbfdfd 100%);
}

.users-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #eaf7f5;
    color: #0e7770;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

.users-card-icon-security {
    background: #eef3fa;
    color: #315b80;
}

.users-card-heading h2 {
    margin: 0;
    color: #14283d;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.users-card-heading p {
    margin: 4px 0 0;
    color: #7b8a99;
    font-size: 12px;
}

.users-form-content {
    padding: 24px 25px 26px;
}

.users-fields-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 21px 20px;
}

.users-field {
    min-width: 0;
}

.users-field-full {
    grid-column: 1 / -1;
}

.users-field label {
    display: block;
    margin: 0 0 8px;
    color: #304458;
    font-size: 12px;
    font-weight: 750;
}

.users-required {
    color: #c04b4b;
    font-weight: 800;
}

.users-field .form-control, .users-field .form-select {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #d9e2e9;
    border-radius: 8px;
    background-color: #fff;
    color: #20364a;
    font: 400 13px/1.45 "DM Sans","Segoe UI",Arial,sans-serif;
    box-shadow: none;
    transition: border-color .18s,box-shadow .18s;
}

.users-field textarea.form-control {
    min-height: 98px;
    resize: vertical;
}

.users-field .form-control::placeholder {
    color: #a0acb7;
}

.users-field .form-control:focus, .users-field .form-select:focus {
    border-color: #58aaa3;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(22,139,131,.10);
}

.users-field-hint {
    display: block;
    margin-top: 7px;
    color: #8795a2;
    font-size: 11px;
    line-height: 1.5;
}

.users-validation {
    display: block;
    margin-top: 6px;
    color: #b54b4b;
    font-size: 11px;
}

.users-active-setting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 23px;
    padding: 15px 16px;
    border: 1px solid #e0eee9;
    border-radius: 10px;
    background: #f7fcfa;
}

.users-active-copy {
    display: flex;
    align-items: center;
    gap: 11px;
}

.users-active-indicator {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #18815f;
    box-shadow: 0 0 0 4px rgba(24,129,95,.10);
}

.users-active-copy strong, .users-active-copy small {
    display: block;
}

.users-active-copy strong {
    color: #244638;
    font-size: 12px;
    font-weight: 800;
}

.users-active-copy small {
    margin-top: 3px;
    color: #71877d;
    font-size: 11px;
}

.users-active-checkbox {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #168b83;
    cursor: pointer;
}

    .users-active-checkbox input {
        width: 17px;
        height: 17px;
        accent-color: #168b83;
    }

.users-form-aside {
    position: sticky;
    top: 95px;
}

.users-help-card {
    padding: 22px 20px;
    border: 1px solid #dcebe8;
    border-radius: 14px;
    background: linear-gradient(155deg,#f4fbfa,#fff 75%);
}

.users-help-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #dff4ef;
    color: #0e7770;
    font-size: 18px;
    font-weight: 800;
}

.users-help-card h3 {
    margin: 0 0 13px;
    color: #19374c;
    font-size: 15px;
    font-weight: 800;
}

.users-help-card ul {
    margin: 0;
    padding-left: 18px;
    color: #627587;
    font-size: 12px;
    line-height: 1.65;
}

.users-help-card li {
    padding-left: 2px;
    margin: 0 0 10px;
}

    .users-help-card li:last-child {
        margin-bottom: 0;
    }

.users-required-note {
    margin-top: 13px;
    padding: 12px 15px;
    border: 1px solid #e5ebf0;
    border-radius: 9px;
    background: #fff;
    color: #7d8b98;
    font-size: 11px;
}

.users-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 0 5px;
}

.users-footer-note {
    color: #82909d;
    font-size: 11px;
}

    .users-footer-note span {
        margin-right: 5px;
        color: #168b83;
        font-size: 14px;
    }

.users-form-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 10px;
    width: auto;
    margin: 0;
}

    .users-form-actions .users-save-btn, .users-form-actions .users-cancel-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 115px;
        min-height: 43px;
        padding: 10px 18px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.3;
        text-decoration: none !important;
        cursor: pointer;
        transition: all .18s ease;
    }

    .users-form-actions .users-save-btn {
        border: 1px solid #168b83;
        background: #168b83;
        color: #fff;
        box-shadow: 0 5px 12px rgba(22,139,131,.16);
    }

        .users-form-actions .users-save-btn:hover {
            border-color: #0e6e68;
            background: #0e6e68;
            transform: translateY(-1px);
        }

    .users-form-actions .users-cancel-btn {
        border: 1px solid #dbe4eb;
        background: #fff;
        color: #4b6072 !important;
    }

        .users-form-actions .users-cancel-btn:hover {
            border-color: #c5d1da;
            background: #f6f8fa;
        }

.users-page > .msg, .users-page > span[id*="lblMessage"] {
    display: block;
    margin-bottom: 15px;
}

@media (max-width:1050px) {
    .users-form-layout {
        grid-template-columns: minmax(0,1fr) 230px;
        gap: 16px;
    }

    .users-form-content {
        padding: 21px;
    }
}

@media (max-width:850px) {
    .users-form-layout {
        grid-template-columns: 1fr;
    }

    .users-form-aside {
        position: static;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .users-required-note {
        align-self: start;
        margin-top: 0;
        white-space: nowrap;
    }
}

@media (max-width:600px) {
    .users-page-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px 18px;
    }

        .users-page-header h1 {
            font-size: 25px;
        }

    .users-back-btn {
        width: 100%;
    }

    .users-card-heading {
        padding: 18px;
    }

    .users-form-content {
        padding: 19px 18px 21px;
    }

    .users-fields-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .users-field-full {
        grid-column: auto;
    }

    .users-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .users-form-actions {
        width: 100%;
    }

        .users-form-actions .users-save-btn, .users-form-actions .users-cancel-btn {
            flex: 1 1 0;
            min-width: 0;
        }

    .users-form-aside {
        grid-template-columns: 1fr;
    }

    .users-required-note {
        white-space: normal;
    }
}
/* Users Add/Edit - Remove Side Panel Space */
.users-form-layout {
    display: block !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
}

.users-form-main {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1;
}

/* Trademark listing filters */
.trademark-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

    .trademark-filters .field {
        min-width: 0;
        margin-bottom: 0;
    }

    .trademark-filters label {
        display: block;
        margin-bottom: 7px;
    }

    .trademark-filters .form-control {
        width: 100%;
        min-height: 44px;
    }

.trademark-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.trademark-filter-summary {
    margin: 4px 0 14px;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .trademark-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .trademark-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .trademark-filter-actions {
        width: 100%;
    }

        .trademark-filter-actions .btn {
            flex: 1 1 auto;
        }
}

.stat-card.blue {
    border-left: 4px solid #3b82f6;
}

.stat-card.purple {
    border-left: 4px solid #8b5cf6;
}

.stat-card.gray {
    border-left: 4px solid #64748b;
}

.stat-card.dark-red {
    border-left: 4px solid #991b1b;
}

.stat-card.success {
    border-left: 4px solid #059669;
}
