@font-face {
    font-family: est;
    src: url(fonts/est.woff2) format("woff2");
}
.nnd-wrap {
    --nnd-ink: #16302b;
    --nnd-primary: #0162c9;
    --nnd-primary-dark: #003e81;
    --nnd-accent: #c9861f;
    --nnd-bg: #f4f7f6;
    --nnd-card: #ffffff;
    --nnd-border: #e1e8e5;
    --nnd-muted: #6c7b77;
    --nnd-success: #2f9e6e;
    --nnd-success-bg: #e7f6ef;
    --nnd-warn: #b9790a;
    --nnd-warn-bg: #fbf0dc;
    --nnd-danger: #c4433d;
    --nnd-danger-bg: #fbeae9;
    --nnd-info: #3573b1;
    --nnd-info-bg: #e9f1fa;
    font-family: "est", Tahoma, Arial, sans-serif;
    background: var(--nnd-bg);
    color: var(--nnd-ink);
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px 0 20px 0;
}
.nnd-wrap * {
    box-sizing: border-box;
}
.nnd-shell {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
}
.nnd-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.nnd-user-card {
    background: var(--nnd-card);
    border: 1px solid var(--nnd-border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(22, 48, 43, 0.04);
}
.nnd-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(155deg, var(--nnd-primary), var(--nnd-primary-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 10px;
}
.nnd-user-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}
.nnd-user-sub {
    font-size: 12.5px;
    color: var(--nnd-muted);
    direction: ltr;
    display: inline-block;
}
.nnd-menu {
    background: var(--nnd-card);
    border: 1px solid var(--nnd-border);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nnd-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 11px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    color: var(--nnd-ink);
    text-align: right;
    width: 100%;
    transition:
        background 0.15s ease,
        color 0.15s ease;
}
a.nnd-logout {
    text-decoration: none !important;
}
.nnd-menu-item svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    opacity: 0.75;
}
.nnd-menu-item:hover {
    background: var(--nnd-primary);
}
.nnd-menu-item.nnd-active {
    background: var(--nnd-primary);
    color: #fff;
}
.nnd-menu-item.nnd-active svg {
    opacity: 1;
}
.nnd-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--nnd-card);
    border: 1px solid var(--nnd-border);
    border-radius: 14px;
    padding: 11px;
    color: var(--nnd-danger);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
}
.nnd-logout:hover {
    background: var(--nnd-danger);
	color: #fff;
}
.nnd-logout svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}
.nnd-content {
    flex: 1;
    min-width: 0;
}
.nnd-panel {
    display: none;
    animation: nndFade 0.25s ease;
}
.nnd-panel.nnd-active {
    display: block;
}
@keyframes nndFade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nnd-panel-head {
    margin-bottom: 16px;
}
.nnd-panel-head h2 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 3px;
}
.nnd-panel-head p {
    margin: 0;
    color: var(--nnd-muted);
    font-size: 13px;
}
.nnd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.nnd-stat {
    background: var(--nnd-card);
    border: 1px solid var(--nnd-border);
    border-radius: 14px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.nnd-stat::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--nnd-stat-color, var(--nnd-primary));
}
.nnd-stat b {
    display: block;
    font-size: 24px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.nnd-stat span {
    font-size: 12.5px;
    color: var(--nnd-muted);
}
.nnd-card {
    background: var(--nnd-card);
    border: 1px solid var(--nnd-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.nnd-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}
.nnd-empty {
    text-align: center;
    color: var(--nnd-muted);
    padding: 26px 10px;
    font-size: 13.5px;
}
.nnd-recent-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 4px;
    border-bottom: 1px solid var(--nnd-border);
    font-size: 13.5px;
}
.nnd-recent-row:last-child {
    border-bottom: 0;
}
.nnd-recent-main span {
    display: block;
}
.nnd-recent-main .nnd-service {
    font-weight: 600;
}
.nnd-recent-main .nnd-date {
    color: var(--nnd-muted);
    font-size: 12px;
    margin-top: 2px;
}
.nnd-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.nnd-badge-success {
    background: var(--nnd-success-bg);
    color: var(--nnd-success);
}
.nnd-badge-warn {
    background: var(--nnd-warn-bg);
    color: var(--nnd-warn);
}
.nnd-badge-danger {
    background: var(--nnd-danger-bg);
    color: var(--nnd-danger);
}
.nnd-badge-info {
    background: var(--nnd-info-bg);
    color: var(--nnd-info);
}
.nnd-badge-muted {
    background: #eff2f1;
    color: var(--nnd-muted);
}
.nnd-ticket {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px dashed #c9c2b4;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    color: var(--nnd-accent);
    position: relative;
}
.nnd-table-wrap {
    overflow-x: auto;
}
.nnd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
.nnd-table th {
    text-align: right;
    color: var(--nnd-muted);
    font-weight: 600;
    font-size: 12.5px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--nnd-border);
    white-space: nowrap;
}
.nnd-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--nnd-border);
    white-space: nowrap;
}
.nnd-table tr:last-child td {
    border-bottom: 0;
}
.nnd-alert {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 16px;
}
.nnd-alert-success {
    background: var(--nnd-success-bg);
    color: var(--nnd-success);
}
.nnd-alert-danger {
    background: var(--nnd-danger-bg);
    color: var(--nnd-danger);
}
.nnd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.nnd-field {
    margin-bottom: 14px;
}
.nnd-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.nnd-field input {
    width: 100%;
    border: 1px solid var(--nnd-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 13.5px;
    background: #fbfcfb;
    color: var(--nnd-ink);
}
.nnd-field input:focus {
    outline: 2px solid var(--nnd-primary);
    outline-offset: 1px;
    background: #fff;
}
.nnd-field input[readonly] {
    color: var(--nnd-muted);
    background: #f1f3f2;
}
.nnd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nnd-primary);
    color: #fff;
    border: 0;
    border-radius: 11px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}
.nnd-btn:hover {
    background: var(--nnd-primary-dark);
}
@media (max-width: 820px) {
    .nnd-shell {
        flex-direction: column;
    }
    .nnd-sidebar {
        flex: 1 1 auto;
        width: 100%;
        position: static;
    }
	.nnd-content {
		min-width: 100%;
	}	
    .nnd-menu-item {
        white-space: nowrap;
        width: auto;
    }
    .nnd-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .nnd-grid-2 {
        grid-template-columns: 1fr;
    }
}
