/* WebTiniaPro: sidebar layout, nav SVG icons, legacy class aliases */

.tp-sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 14px;
}

.tp-nav {
    flex: 1 1 auto;
    min-height: 0;
}

.tp-sidebar footer {
    position: static;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 12px;
}

.tp-nav .nav-icon-wrap {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.tp-nav .nav-icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tp-nav a.active .nav-icon-wrap,
.tp-nav a.active {
    color: var(--tp-green);
}

.tp-nav-logout {
    min-height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 11px;
    color: var(--tp-soft);
    font-size: 15px;
}

.tp-nav-logout:hover {
    color: var(--tp-red);
    background: rgba(255, 82, 104, .12);
}

.tp-nav-section {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 4px;
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tp-btn.secondary,
a.tp-btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Legacy aliases → tinia-core */
.dashboard-top { display: contents; }
.dashboard-grid { display: contents; }
.tinia-finance-kpis { display: contents; }

/* Dashboard KPI — 6 equal cards */
.tp-dashboard-kpi-section {
    margin-bottom: 16px;
}

.tp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.tp-kpi-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tp-kpi-card {
    min-width: 0;
    width: 100%;
    height: 136px;
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;

    padding: 16px;
    border-radius: 22px;
    overflow: hidden;
}

.tp-kpi-card.metric-card {
    min-height: 136px;
    max-height: 136px;
}

.tp-kpi-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
}

.tp-kpi-label {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-kpi-value {
    display: block;
    margin: 8px 0 0;
    font-size: 28px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-kpi-sub {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.2;
    color: var(--tp-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-kpi-card .metric-card strong,
.tp-kpi-card .tp-kpi-value {
    margin: 8px 0 0;
}

.tp-kpi-card .metric-card span,
.tp-kpi-card .tp-kpi-label {
    margin: 0;
}

.tp-kpi-card .metric-card small,
.tp-kpi-card .tp-kpi-sub {
    margin: 6px 0 0;
}

.tp-kpi-icon,
.tp-kpi-card .metric-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
    border-radius: 16px;
    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tp-kpi-icon .tp-stat-svg,
.tp-kpi-card .metric-icon .tp-stat-svg {
    width: 22px;
    height: 22px;
}

.tp-dashboard-kpi-cta {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 1600px) {
    .tp-kpi-grid:not(.tp-kpi-grid--3) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .tp-kpi-grid:not(.tp-kpi-grid--3) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-kpi-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tp-kpi-grid:not(.tp-kpi-grid--3),
    .tp-kpi-grid--3 {
        grid-template-columns: 1fr;
    }

    .tp-kpi-card {
        height: auto;
        min-height: 136px;
        max-height: none;
    }
}

.loading-msg {
    color: var(--tp-muted);
    padding: 24px;
    text-align: center;
}

.tinia-list-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tinia-list-tabs button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid var(--tp-line);
    background: rgba(7, 15, 28, .55);
    color: var(--tp-soft);
    font-weight: 700;
    cursor: pointer;
}

.tinia-list-tabs button.active {
    background: rgba(72, 238, 134, .13);
    border-color: rgba(72, 238, 134, .28);
    color: var(--tp-green);
}

table.tinia-data-table,
table.tp-table {
    width: 100%;
    border-collapse: collapse;
}

table.tinia-data-table th,
table.tinia-data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--tp-line-soft);
    text-align: left;
}

table.tinia-data-table th {
    color: var(--tp-muted);
    font-size: 13px;
    font-weight: 800;
}

.upcoming-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--tp-line-soft);
}

.upcoming-row.two-col {
    grid-template-columns: 1fr auto;
}

.upcoming-row.two-col > div:first-child,
.upcoming-row.two-col > .tp-line-text {
    min-width: 0;
}

.upcoming-row:last-child { border-bottom: 0; }

.upcoming-row .green { color: var(--tp-green); font-weight: 900; }
.upcoming-row .bad { color: #ff7d8e; font-weight: 900; }

/* Naslov + podnaslov u dvije linije (ne "Muško šišanje1 završenih") */
.tp-line-text,
.tp-list-row > .tp-line-text,
.tp-list-row > div:not(.circle-icon):not(.nav-icon-wrap) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.tp-line-text b,
.tp-list-row b,
.upcoming-row b {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tp-text);
}

.tp-line-text small,
.tp-list-row small,
.upcoming-row small {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    color: var(--tp-muted);
    margin: 0;
}

.tp-table .tp-line-text b {
    font-size: 14px;
}

.tp-table .tp-line-text small {
    font-size: 12px;
}

.tp-avatar-sm,
.user-initials-premium {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    background: rgba(72, 238, 134, .14);
    color: var(--tp-green);
}

.alert-info {
    border: 1px solid rgba(93, 155, 255, .45);
    color: #8dbbff;
    background: rgba(93, 155, 255, .08);
    padding: 18px 22px;
    border-radius: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.alert-ok,
.tp-alert-ok {
    border: 1px solid rgba(72, 238, 134, .55);
    color: var(--tp-green);
    background: rgba(72, 238, 134, .06);
    padding: 18px 22px;
    border-radius: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.notification-link {
    text-decoration: none;
    color: inherit;
}

.notification-link:hover {
    opacity: .92;
}

.tinia-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.tinia-chart-bars i {
    display: block;
    width: 34px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--tp-green), rgba(72, 238, 134, .2));
    min-height: 4px;
}

.tinia-chart-bars.expense i,
.tinia-chart-bars.red i {
    background: linear-gradient(180deg, #ff324c, rgba(255, 82, 104, .18));
}

.big-page { min-height: 320px; }

/* Services table */
.tp-services-table .tp-services-row {
    cursor: pointer;
    transition: background .15s ease;
}

.tp-services-table .tp-services-row:hover td {
    background: rgba(255, 255, 255, .035);
}

.tp-services-table .tp-col-price,
.tp-services-table th.tp-col-price {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.tp-services-table .tp-col-actions,
.tp-services-table th.tp-col-actions {
    text-align: right;
    width: 130px;
}

.tp-services-table .tp-muted-cell {
    color: var(--tp-muted);
}

.tp-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.tp-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--tp-line-soft);
    background: rgba(255, 255, 255, .04);
    color: var(--tp-soft);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.tp-icon-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, .08);
    color: var(--tp-text);
}

.tp-icon-btn.danger:hover:not(:disabled) {
    border-color: rgba(255, 82, 104, .35);
    color: #ff9daa;
}

.tp-icon-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Product edit modal (Tinia Pro add/edit flow) */
.tp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .62);
    display: grid;
    place-items: center;
    padding: 20px;
}

.tp-modal {
    width: min(480px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    border-radius: 16px;
    border: 1px solid var(--tp-line);
    background: linear-gradient(180deg, #0f1c30 0%, #0a1424 100%);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.tp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--tp-line-soft);
}

.tp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--tp-text);
}

.tp-modal-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: var(--tp-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.tp-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--tp-line-soft);
}

.tp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-field span {
    font-size: 12px;
    font-weight: 700;
    color: var(--tp-muted);
}

.tp-field input,
.tp-field textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--tp-line-soft);
    background: rgba(0, 0, 0, .22);
    color: var(--tp-text);
    font: inherit;
}

.tp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--tp-soft);
    cursor: pointer;
}

.tp-check input {
    margin-top: 3px;
}

.tp-modal-error {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 82, 104, .12);
    color: #ff9daa;
    font-size: 13px;
}

/* Rashodi — premium tamni crveni glass */
.tp-expense-card {
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 77, 104, .13), transparent 34%),
        linear-gradient(145deg, rgba(42, 25, 38, .88), rgba(17, 25, 43, .92)) !important;
    border-color: rgba(255, 77, 104, .24) !important;
}

.tp-expense-card .tp-table tr:hover td {
    background: rgba(255, 77, 104, .045);
}

.tp-expense-card .tp-money,
.tp-expense-card .amount {
    color: #ff6d81;
    font-weight: 900;
}

.tp-expense-card .active-tab,
.tp-expense-card .tp-tab.active,
.tp-expense-card .tinia-list-tabs button.active {
    color: #ff6d81;
    background: rgba(255, 77, 104, .14);
    border-color: rgba(255, 77, 104, .28);
}

/* Finansije — dodatni prihod / rashodi CRUD */
.tp-finance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0;
}

.tp-finance-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -.02em;
}

.tp-finance-add {
    height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid rgba(72, 239, 140, .35);
    background: linear-gradient(135deg, #42dd82, #34c978);
    color: #fff;
    font-weight: 950;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(72, 239, 140, .18);
    white-space: nowrap;
}

.tp-finance-add.expense {
    border-color: rgba(255, 77, 104, .35);
    background: linear-gradient(135deg, #ff6d81, #e8556a);
    box-shadow: 0 12px 28px rgba(255, 77, 104, .18);
}

.tp-finance-card.income {
    border-color: rgba(72, 239, 140, .24) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(72, 239, 140, .10), transparent 34%),
        linear-gradient(145deg, rgba(18, 42, 32, .88), rgba(17, 25, 43, .92)) !important;
}

.tp-finance-card.expense {
    border-color: rgba(255, 77, 104, .24) !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 77, 104, .10), transparent 34%),
        linear-gradient(145deg, rgba(42, 25, 38, .88), rgba(17, 25, 43, .92)) !important;
}

.tp-finance-card.income .tinia-list-tabs button.active,
.tp-income-page .tinia-list-tabs button.active {
    color: #48ef8c;
    background: rgba(72, 239, 140, .14);
    border-color: rgba(72, 239, 140, .28);
}

.tp-finance-table-wrap {
    overflow: auto;
    border-radius: 14px;
    border: 1px solid rgba(117, 159, 218, .12);
}

.tp-finance-amount.income {
    color: #48ef8c;
    font-weight: 950;
}

.tp-finance-amount.expense {
    color: #ff6d81;
    font-weight: 950;
}

.tp-finance-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tp-finance-table .tp-col-amount {
    text-align: right;
    white-space: nowrap;
}

.tp-finance-table .tp-col-actions {
    width: 96px;
    text-align: right;
}

.tp-finance-modal-backdrop {
    backdrop-filter: blur(6px);
}

.tp-modal.tp-finance-modal {
    border-radius: 22px;
    border: 1px solid rgba(117, 159, 218, .18);
    background:
        radial-gradient(circle at 12% 0%, rgba(72, 239, 140, .08), transparent 40%),
        linear-gradient(165deg, rgba(15, 28, 48, .97), rgba(8, 14, 26, .98));
    box-shadow: 0 28px 72px rgba(0, 0, 0, .55);
}

.tp-modal.tp-finance-modal.expense {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 104, .10), transparent 40%),
        linear-gradient(165deg, rgba(28, 18, 28, .97), rgba(8, 14, 26, .98));
}

.tp-finance-amount-input {
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: -.02em;
    padding: 14px 14px !important;
}

.tp-finance-save {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-weight: 950;
    font-size: 14px;
    cursor: pointer;
}

.tp-finance-save.income {
    background: linear-gradient(135deg, #42dd82, #34c978);
    box-shadow: 0 12px 28px rgba(72, 239, 140, .22);
}

.tp-finance-save.expense {
    background: linear-gradient(135deg, #ff6d81, #e8556a);
    box-shadow: 0 12px 28px rgba(255, 77, 104, .22);
}

.tp-finance-save:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Premium dark event cards (calendar + dashboard) */
.event-card,
.tp-cal-ev {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .22) !important;
}

.event-card.green,
.tp-cal-ev,
.tp-cal-ev.tone-green {
    background: linear-gradient(
        135deg,
        rgba(62, 214, 133, .88),
        rgba(44, 138, 104, .82)
    ) !important;
}

.event-card.purple,
.tp-cal-ev.tone-purple {
    background: linear-gradient(
        135deg,
        rgba(149, 92, 255, .88),
        rgba(92, 58, 188, .82)
    ) !important;
}

.event-card.blue,
.tp-cal-ev.tone-blue {
    background: linear-gradient(
        135deg,
        rgba(88, 130, 220, .88),
        rgba(52, 78, 148, .82)
    ) !important;
}

.event-card.orange {
    background: linear-gradient(
        135deg,
        rgba(210, 138, 58, .88),
        rgba(140, 88, 38, .82)
    ) !important;
}

.event-card b,
.event-card .tp-line-text b,
.tp-cal-ev-title {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
}

.event-card small,
.event-card .tp-line-text small,
.tp-cal-ev-sub {
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: .82 !important;
}

/* Calendar — premium list view */
.tp-calendar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
}

.tp-calendar-list-item {
    min-height: 132px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: 140px 1px minmax(0, 1fr) auto 54px;
    align-items: center;
    gap: 28px;
    border-radius: 22px;
    border: 1px solid rgba(117, 159, 218, .24);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 10% 0%, rgba(88, 230, 217, .10), transparent 34%),
        linear-gradient(145deg, rgba(20, 34, 54, .86), rgba(7, 17, 31, .90));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 18px 45px rgba(0, 0, 0, .24);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.tp-calendar-list-item:hover {
    border-color: rgba(88, 230, 217, .32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .09),
        0 22px 50px rgba(0, 0, 0, .28);
}

.tp-calendar-timebox {
    width: 128px;
    height: 94px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(72, 239, 140, .18), rgba(88, 230, 217, .08));
    border: 1px solid rgba(88, 230, 217, .14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 10px 26px rgba(0, 0, 0, .18);
    overflow: hidden;
}

.tp-time-icon {
    font-size: 25px;
    line-height: 1;
    color: #48ef8c;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.tp-time-text {
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.5px;
    color: #48ef8c;
    white-space: nowrap;
    text-align: center;
}

.tp-calendar-separator {
    height: 76px;
    width: 1px;
    justify-self: center;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(117, 159, 218, .46),
        transparent
    );
}

.tp-calendar-info {
    min-width: 0;
    overflow: hidden;
}

.tp-calendar-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.18;
    letter-spacing: -.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-calendar-subtitle {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #a9bed8;
    font-size: 18px;
    font-weight: 600;
}

.tp-calendar-subtitle-text {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.18;
}

.tp-small-icon {
    flex-shrink: 0;
    line-height: 1;
    opacity: .75;
}

.tp-calendar-status {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
}

.tp-calendar-status.active {
    color: #48ef8c;
    background: rgba(72, 239, 140, .13);
    border: 1px solid rgba(72, 239, 140, .20);
}

.tp-calendar-status.done {
    color: #7fb7ff;
    background: rgba(127, 183, 255, .13);
    border: 1px solid rgba(127, 183, 255, .20);
}

.tp-calendar-status.cancelled {
    color: #ff6d81;
    background: rgba(255, 77, 104, .13);
    border: 1px solid rgba(255, 77, 104, .20);
}

.tp-calendar-menu {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(117, 159, 218, .16);
    background: rgba(7, 17, 31, .42);
    color: rgba(255, 255, 255, .86);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.tp-calendar-menu:hover {
    border-color: rgba(88, 230, 217, .32);
    background: rgba(88, 230, 217, .08);
}

/* Dashboard — premium quick actions */
.tp-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tp-quick-action {
    min-height: 96px;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 13px;
    border: 1px solid rgba(117, 159, 218, .18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
        rgba(7, 17, 31, .36);
    color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 10px 24px rgba(0, 0, 0, .16);
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.tp-quick-action:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 230, 217, .34);
    background:
        linear-gradient(135deg, rgba(88, 230, 217, .08), rgba(72, 239, 140, .035)),
        rgba(7, 17, 31, .48);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 14px 30px rgba(0, 0, 0, .24);
}

.tp-quick-action:focus-visible {
    outline: 2px solid rgba(88, 230, 217, .5);
    outline-offset: 2px;
}

.tp-quick-action > span:last-child {
    font-size: 12px;
    font-weight: 850;
    line-height: 1.1;
    text-align: center;
    color: rgba(255, 255, 255, .92);
}

.tp-quick-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 8px 18px rgba(0, 0, 0, .20);
    flex-shrink: 0;
}

.tp-quick-icon .tp-quick-action-svg,
.tp-quick-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.tp-quick-icon.green {
    color: #4af08c;
    background: rgba(72, 239, 140, .14);
    border-color: rgba(72, 239, 140, .22);
}

.tp-quick-icon.blue {
    color: #78b8ff;
    background: rgba(120, 184, 255, .13);
    border-color: rgba(120, 184, 255, .20);
}

.tp-quick-icon.purple {
    color: #a66cff;
    background: rgba(166, 108, 255, .14);
    border-color: rgba(166, 108, 255, .22);
}

/* Calendar — premium day view */
.tp-calendar-premium {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(88, 230, 217, .08), transparent 36%),
        linear-gradient(145deg, rgba(25, 42, 66, .88), rgba(9, 20, 36, .92));
    border: 1px solid rgba(117, 159, 218, .28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 22px 60px rgba(0, 0, 0, .28);
}

.tp-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.tp-calendar-tabs {
    display: inline-flex;
    gap: 8px;
}

.tp-calendar-tabs button,
.tp-calendar-nav button {
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid rgba(117, 159, 218, .22);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
    color: #ffffff;
    font-weight: 900;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 8px 20px rgba(0, 0, 0, .16);
    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}

.tp-calendar-tabs button.active,
.tp-calendar-nav button.active {
    color: #48ef8c;
    background:
        linear-gradient(135deg, rgba(72, 239, 140, .22), rgba(88, 230, 217, .09));
    border-color: rgba(72, 239, 140, .38);
}

.tp-calendar-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tp-calendar-nav strong {
    min-width: 128px;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.2;
}

.tp-day-calendar {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 640px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(117, 159, 218, .16);
    background:
        linear-gradient(180deg, rgba(8, 18, 32, .72), rgba(10, 23, 41, .72));
}

.tp-time-column {
    position: relative;
    z-index: 2;
    padding-top: 8px;
    background:
        linear-gradient(180deg, rgba(7, 17, 31, .82), rgba(10, 22, 39, .62));
    border-right: 1px solid rgba(117, 159, 218, .13);
}

.tp-time-row {
    height: var(--tp-hour-h, 48px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    color: #9fc4ff;
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    box-sizing: border-box;
}

.tp-day-grid {
    position: relative;
    min-width: 0;
    padding-top: 8px;
    box-sizing: border-box;
}

.tp-hour-line {
    height: var(--tp-hour-h, 48px);
    border-bottom: 1px solid rgba(160, 190, 230, .075);
    box-sizing: border-box;
}

.tp-hour-line:nth-child(even) {
    background: rgba(255, 255, 255, .012);
}

.tp-event-card {
    position: absolute;
    left: 16px;
    right: 16px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(88, 230, 217, .34);
    background:
        linear-gradient(135deg, rgba(62, 214, 133, .86), rgba(36, 118, 84, .82));
    box-shadow:
        0 10px 28px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .10);
    color: #fff;
    overflow: hidden;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    font-family: inherit;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
    z-index: 3;
}

.tp-event-card:hover {
    transform: translateY(-1px);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, .30),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.tp-event-title {
    display: block;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .26);
}

.tp-event-subtitle {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-event-card.purple {
    background:
        linear-gradient(135deg, rgba(139, 92, 246, .86), rgba(82, 54, 160, .82));
    border-color: rgba(166, 108, 255, .34);
}

.tp-event-card.blue {
    background:
        linear-gradient(135deg, rgba(88, 130, 220, .86), rgba(52, 78, 148, .82));
    border-color: rgba(120, 184, 255, .34);
}

.tp-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff4d68;
    box-shadow: 0 0 18px rgba(255, 77, 104, .35);
    z-index: 5;
    pointer-events: none;
}

.tp-now-label {
    position: absolute;
    left: -74px;
    top: -13px;
    min-width: 58px;
    height: 26px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ff4d68;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(255, 77, 104, .35);
}

.tp-cal-list--in-premium {
    margin-top: 8px;
}

.tp-cal-list--in-premium .tp-calendar-list {
    margin-top: 12px;
}

@media (max-width: 900px) {
    .tp-calendar-header {
        flex-direction: column;
        align-items: stretch;
    }

    .tp-calendar-nav {
        justify-content: space-between;
    }

    .tp-day-calendar {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: 520px;
    }

    .tp-event-card {
        left: 10px;
        right: 10px;
    }

    .tp-now-label {
        left: -58px;
        min-width: 52px;
        font-size: 11px;
    }
}

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

    .tp-calendar-list-item {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }

    .tp-calendar-separator {
        display: none;
    }

    .tp-calendar-timebox {
        width: 100%;
        height: 76px;
        flex-direction: row;
        gap: 10px;
    }

    .tp-time-icon {
        margin-bottom: 0;
    }

    .tp-calendar-title {
        white-space: normal;
        font-size: 20px;
    }

    .tp-calendar-subtitle {
        font-size: 15px;
    }

    .tp-calendar-subtitle-text {
        white-space: normal;
    }

    .tp-calendar-status,
    .tp-calendar-menu {
        width: 100%;
    }

    .tp-calendar-menu {
        height: 48px;
    }
}

/* Reservations */
.tp-reservations-page .tp-res-tabs button {
    font-weight: 800;
}

.tp-filter-active {
    border-color: rgba(72, 239, 140, .35) !important;
    color: var(--tp-green) !important;
}

.tp-res-empty {
    margin-top: 24px;
    padding: 32px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(117, 159, 218, .22);
    background: rgba(8, 18, 32, .35);
}

.tp-res-table-wrap {
    margin-top: 8px;
    border-radius: 18px;
    border: 1px solid rgba(117, 159, 218, .14);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 22, 39, .55), rgba(8, 18, 32, .42));
}

.tp-res-table thead th {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9fc4ff;
    font-weight: 850;
    background: rgba(7, 17, 31, .72);
    border-bottom: 1px solid rgba(117, 159, 218, .16);
}

.tp-res-row {
    transition: background .16s ease;
}

.tp-res-row:hover td {
    background: rgba(88, 230, 217, .06);
}

.tp-res-row td {
    border-bottom: 1px solid rgba(117, 159, 218, .08);
    vertical-align: middle;
    padding-top: 14px;
    padding-bottom: 14px;
}

.tp-res-client {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tp-res-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 950;
    color: #fff;
    background: linear-gradient(135deg, rgba(88, 130, 220, .85), rgba(52, 78, 148, .82));
    border: 1px solid rgba(120, 184, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.tp-res-client-name {
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.tp-res-client-phone {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(159, 196, 255, .78);
    font-weight: 650;
}

.tp-res-service {
    font-weight: 900;
    color: #fff;
}

.tp-res-team {
    font-size: 13px;
    color: rgba(159, 196, 255, .82);
    font-weight: 700;
}

.tp-res-datetime {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tp-res-date {
    font-weight: 850;
    color: #fff;
}

.tp-res-time {
    font-size: 12px;
    color: rgba(159, 196, 255, .78);
    font-weight: 650;
}

.tp-col-amount,
.tp-res-table th.tp-col-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.tp-res-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tp-res-pill.upcoming {
    color: #8ee9ff;
    background: rgba(56, 189, 248, .14);
    border-color: rgba(56, 189, 248, .32);
}

.tp-res-pill.completed {
    color: #7dffb0;
    background: rgba(72, 239, 140, .14);
    border-color: rgba(72, 239, 140, .32);
}

.tp-res-pill.canceled {
    color: #ff9daa;
    background: rgba(255, 77, 104, .14);
    border-color: rgba(255, 77, 104, .32);
}

.tp-res-pill.noshow {
    color: #ffc56a;
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .34);
}

.tp-res-cards {
    display: none;
    margin-top: 12px;
    gap: 12px;
}

.tp-res-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(117, 159, 218, .18);
    background:
        linear-gradient(145deg, rgba(18, 34, 58, .72), rgba(9, 20, 36, .78));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.tp-res-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-res-card-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.tp-res-label {
    color: rgba(159, 196, 255, .72);
    font-weight: 700;
}

.tp-res-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(117, 159, 218, .12);
}

.tp-res-card-amount {
    font-weight: 950;
    font-size: 16px;
    color: #fff;
}

/* Filter modals — premium dark controls */
.tp-modal.tp-filter-modal {
    overflow: visible;
    max-height: min(92vh, 820px);
}

.tp-filter-modal {
    width: min(520px, 100%);
    overflow: visible;
    background:
        radial-gradient(circle at 12% 0%, rgba(88, 230, 217, .08), transparent 34%),
        linear-gradient(145deg, rgba(20, 34, 54, .98), rgba(7, 17, 31, .98));
    border: 1px solid rgba(117, 159, 218, .28);
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .50);
}

.tp-filter-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(117, 159, 218, .14);
}

.tp-filter-modal-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: calc(92vh - 168px);
}

.tp-filter-modal-footer {
    padding: 18px 22px;
    border-top: 1px solid rgba(117, 159, 218, .14);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.tp-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
}

.tp-filter-modal label,
.tp-filter-field > span {
    display: block;
    color: #a9bed8;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 8px;
}

.tp-filter-modal input,
.tp-filter-modal select,
.tp-filter-modal .tp-input,
.tp-filter-field input[type="number"],
.tp-filter-date {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(117, 159, 218, .22);
    background: rgba(7, 17, 31, .72);
    color: #ffffff;
    padding: 0 14px;
    font-weight: 750;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.tp-filter-modal input::placeholder {
    color: rgba(169, 190, 216, .45);
}

.tp-filter-modal input:focus,
.tp-filter-modal select:focus,
.tp-filter-modal .tp-input:focus,
.tp-filter-date:focus {
    border-color: rgba(88, 230, 217, .55);
    box-shadow: 0 0 0 3px rgba(88, 230, 217, .10);
}

.tp-filter-modal input[type="date"]::-webkit-calendar-picker-indicator,
.tp-filter-date::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: .65;
    cursor: pointer;
}

.tp-filter-modal input[type="date"]::-webkit-datetime-edit,
.tp-filter-date::-webkit-datetime-edit {
    color: #ffffff;
}

.tp-filter-modal input[type="number"]::-webkit-inner-spin-button,
.tp-filter-modal input[type="number"]::-webkit-outer-spin-button {
    opacity: .55;
    filter: invert(1);
}

.tp-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Custom select */
.tp-select-custom {
    position: relative;
}

.tp-select-button {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 12px;
    border: 1px solid rgba(117, 159, 218, .22);
    background: rgba(7, 17, 31, .72);
    color: #ffffff;
    font-weight: 850;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    box-sizing: border-box;
}

.tp-select-button:hover {
    border-color: rgba(88, 230, 217, .35);
}

.tp-select-button-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.tp-select-chevron {
    flex-shrink: 0;
    font-size: 12px;
    color: #9fc4ff;
    opacity: .85;
}

.tp-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 2100;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(117, 159, 218, .24);
    background:
        linear-gradient(145deg, rgba(21, 35, 56, .98), rgba(7, 17, 31, .98));
    box-shadow:
        0 18px 50px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.tp-select-option {
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: #dce8f8;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.tp-select-option:hover {
    background: rgba(88, 230, 217, .08);
    color: #ffffff;
}

.tp-select-option.active {
    color: #48ef8c;
    background: rgba(72, 239, 140, .13);
}

@media (max-width: 900px) {
    .tp-res-table-wrap {
        display: none;
    }

    .tp-res-cards {
        display: flex;
        flex-direction: column;
    }

    .tp-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* Clients */
.tp-clients-page .tp-clients-table-wrap {
    margin-top: 8px;
    border-radius: 18px;
    border: 1px solid rgba(117, 159, 218, .14);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(10, 22, 39, .55), rgba(8, 18, 32, .42));
}

.tp-clients-table thead th {
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #9fc4ff;
    font-weight: 850;
    background: rgba(7, 17, 31, .72);
    border-bottom: 1px solid rgba(117, 159, 218, .16);
}

.tp-clients-row {
    transition: background .16s ease;
}

.tp-clients-row:hover td {
    background: rgba(88, 230, 217, .06);
}

.tp-clients-row td {
    border-bottom: 1px solid rgba(117, 159, 218, .08);
    vertical-align: middle;
    padding-top: 14px;
    padding-bottom: 14px;
}

.tp-client-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.tp-client-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(72, 239, 140, .75), rgba(39, 126, 85, .9));
    color: #fff;
    font-size: 13px;
    font-weight: 950;
    border: 1px solid rgba(88, 230, 217, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.tp-client-name {
    font-weight: 950;
    color: #fff;
    line-height: 1.2;
}

.tp-client-sub {
    margin-top: 3px;
    color: #9fb1c8;
    font-size: 13px;
    font-weight: 650;
}

.tp-clients-contact .tp-clients-phone {
    font-weight: 850;
    color: #fff;
}

.tp-clients-contact .tp-muted {
    color: rgba(159, 196, 255, .55);
}

.tp-clients-metric strong {
    display: block;
    font-size: 18px;
    font-weight: 950;
    color: #fff;
    line-height: 1.1;
}

.tp-clients-metric span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #9fb1c8;
    font-weight: 650;
}

.tp-clients-visit {
    font-weight: 850;
    color: #fff;
}

.tp-client-money {
    display: block;
    text-align: right;
    color: #48ef8c;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.tp-client-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.tp-client-actions a.tp-icon-btn {
    text-decoration: none;
}

.tp-clients-empty {
    margin-top: 24px;
    padding: 32px 20px;
    border-radius: 18px;
    border: 1px dashed rgba(117, 159, 218, .22);
    background: rgba(8, 18, 32, .35);
}

.tp-clients-cards {
    display: none;
    margin-top: 12px;
    gap: 12px;
}

.tp-clients-card {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(117, 159, 218, .18);
    background:
        linear-gradient(145deg, rgba(18, 34, 58, .72), rgba(9, 20, 36, .78));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.tp-clients-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-clients-card-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(117, 159, 218, .12);
}

@media (max-width: 900px) {
    .tp-clients-table-wrap {
        display: none;
    }

    .tp-clients-cards {
        display: flex;
        flex-direction: column;
    }
}

/* Dashboard — Danas ukratko (daily only) */
.summary-panel.tp-panel {
    overflow: hidden;
}

.tp-summary-card {
    overflow: hidden;
}

.tp-summary-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    min-width: 0;
}

.tp-summary-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tp-summary-label {
    display: block;
    color: #a9bed8;
    font-size: 13px;
    font-weight: 850;
}

.tp-summary-amount {
    display: block;
    margin: 8px 0 4px;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 950;
    color: #48ef8c;
}

.tp-summary-sub {
    display: block;
    color: #9fb1c8;
    font-size: 13px;
    font-weight: 700;
}

.tp-summary-growth {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(72, 239, 140, .12);
    border: 1px solid rgba(72, 239, 140, .28);
    color: #7dffb0;
    font-size: 12px;
    font-weight: 850;
}

.tp-summary-chart {
    flex: 0 1 auto;
    width: 100%;
    max-width: 220px;
    min-width: 0;
    max-height: 96px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 10px;
    padding-bottom: 2px;
}

.tp-summary-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 0 0 auto;
}

.tp-summary-bar {
    width: 18px;
    max-height: 72px;
    border-radius: 10px 10px 4px 4px;
    background:
        linear-gradient(180deg, rgba(88, 230, 217, .95), rgba(72, 239, 140, .62));
    box-shadow: 0 0 18px rgba(72, 239, 140, .18);
}

.tp-summary-bar-label {
    font-size: 10px;
    font-weight: 800;
    color: #9fb1c8;
    line-height: 1;
}

.tp-summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.tp-summary-metric {
    min-height: 72px;
    border-radius: 12px;
    padding: 12px;
    background: rgba(6, 14, 26, .55);
    border: 1px solid rgba(117, 159, 218, .14);
    position: relative;
    min-width: 0;
}

.tp-summary-metric span {
    color: #9fb1c8;
    font-size: 12px;
    font-weight: 750;
}

.tp-summary-metric b {
    display: block;
    font-size: 22px;
    margin-top: 8px;
    color: #fff;
    font-weight: 950;
    line-height: 1;
}

.tp-summary-metric i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-style: normal;
    opacity: .75;
}

.tp-summary-metric .ok { color: #48ef8c; }
.tp-summary-metric .bad { color: #ff6b7f; }

@media (max-width: 1100px) {
    .tp-summary-top {
        flex-wrap: wrap;
    }

    .tp-summary-chart {
        max-width: 100%;
        justify-content: space-between;
    }
}

/* Dashboard — unified cards & rows */
.tp-dashboard-widget > .tp-panel.tp-card {
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

.tp-dashboard-widget .tp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px 18px 0;
    position: relative;
    z-index: 2;
}

.tp-dashboard-widget .tp-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -.2px;
    color: #fff;
    line-height: 1.2;
}

.tp-dashboard-widget .tp-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tp-dashboard-widget .tp-card-actions a {
    color: #a9cfff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.tp-dashboard-widget .tp-card-actions a:hover {
    color: #dce8f8;
    text-decoration: underline;
}

.tp-dashboard-widget .tp-card-pad {
    padding: 0 18px 18px;
}

.tp-dashboard-widget .tp-card-header + .tp-card-pad {
    padding-top: 0;
}

.tp-dashboard-widget .tp-drag-handle {
    opacity: .35;
    color: rgba(255, 255, 255, .5);
}

.tp-dashboard-widget .tp-drag-handle:hover {
    opacity: 1;
    color: rgba(255, 255, 255, .92);
}

.tp-upcoming-list {
    min-width: 0;
}

.tp-upcoming-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 12px 0;
    transition: background .18s ease;
}

.tp-upcoming-list .tp-upcoming-row:not(:last-child) {
    border-bottom: 1px solid rgba(117, 159, 218, .1);
}

.tp-upcoming-list .tp-upcoming-row:hover {
    background: rgba(255, 255, 255, .03);
}

.tp-service-avatar {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(72, 239, 140, .20), rgba(88, 230, 217, .08));
    border: 1px solid rgba(88, 230, 217, .14);
    color: #48ef8c;
    font-size: 13px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: .2px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.tp-notify-avatar {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
}

.tp-notify-avatar.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(88, 230, 217, .06));
    border-color: rgba(166, 108, 255, .2);
    color: #c4b5fd;
}

.tp-notify-avatar.blue {
    background: linear-gradient(135deg, rgba(88, 130, 220, .22), rgba(88, 230, 217, .06));
    border-color: rgba(120, 184, 255, .2);
    color: #9fc4ff;
}

.tp-notify-avatar.orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(88, 230, 217, .06));
    border-color: rgba(245, 158, 11, .25);
    color: #ffc56a;
}

.tp-notify-avatar.green {
    background: linear-gradient(135deg, rgba(72, 239, 140, .20), rgba(88, 230, 217, .08));
    border-color: rgba(88, 230, 217, .14);
    color: #48ef8c;
}

.tp-upcoming-info {
    min-width: 0;
}

.tp-upcoming-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-upcoming-subtitle {
    margin-top: 5px;
    color: #9fb1c8;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-upcoming-time {
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    padding-left: 8px;
    font-variant-numeric: tabular-nums;
}

.tp-dashboard-widget .tp-last-reservations {
    margin: 0 -2px;
}

/* Dashboard — zadnje rezervacije danas */
.tp-last-reservations {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(117, 159, 218, .12);
    background: rgba(6, 14, 26, .35);
}

.tp-last-reservations table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.tp-last-reservations .col-client {
    width: 28%;
}

.tp-last-reservations .col-service {
    width: 32%;
}

.tp-last-reservations .col-datetime {
    width: 140px;
}

.tp-last-reservations .col-status {
    width: 118px;
}

.tp-last-reservations td,
.tp-last-reservations th {
    padding: 10px 10px;
    vertical-align: middle;
}

.tp-last-reservations th {
    font-size: 13px;
    font-weight: 850;
    color: #9fb1c8;
    text-align: left;
    border-bottom: 1px solid rgba(117, 159, 218, .14);
    background: rgba(7, 17, 31, .5);
}

.tp-last-reservations td {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    border-bottom: 1px solid rgba(117, 159, 218, .08);
}

.tp-last-reservations tr {
    transition: background .18s ease;
}

.tp-last-reservations tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

.tp-last-reservations tbody tr:last-child td {
    border-bottom: none;
}

.tp-reservation-cell {
    min-width: 0;
    max-width: 100%;
}

.tp-reservation-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 850;
    color: #ffffff;
    line-height: 1.2;
}

.tp-reservation-subtitle {
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    color: #8fa6c3;
    line-height: 1.15;
}

.tp-last-reservations th:nth-child(3),
.tp-last-reservations td:nth-child(3) {
    width: 140px;
    max-width: 140px;
    white-space: nowrap;
}

.tp-date-time {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;

    display: inline-flex;
    align-items: center;

    font-size: 13px;
    font-weight: 850;
    line-height: 1;

    color: #ffffff;
    font-variant-numeric: tabular-nums;
}

.tp-last-reservations td:last-child {
    text-align: right;
}

.tp-last-reservations th:last-child {
    text-align: right;
}

.tp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
    box-sizing: border-box;
}

.tp-status-pill.upcoming {
    color: #58e6d9;
    background: rgba(88, 230, 217, .12);
    border: 1px solid rgba(88, 230, 217, .22);
}

.tp-status-pill.completed {
    color: #48ef8c;
    background: rgba(72, 239, 140, .12);
    border: 1px solid rgba(72, 239, 140, .22);
}

.tp-status-pill.cancelled {
    color: #ff6d81;
    background: rgba(255, 77, 104, .12);
    border: 1px solid rgba(255, 77, 104, .22);
}

.tp-status-pill.noshow {
    color: #ffc56a;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .28);
}

@media (max-width: 900px) {
    .tp-last-reservations {
        overflow-x: auto;
    }

    .tp-last-reservations table {
        min-width: 520px;
    }
}

/* Termini i slotovi */
.tp-sched-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.tp-sched-metric {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(72, 239, 140, .18);
    background:
        radial-gradient(circle at 12% 0%, rgba(72, 239, 140, .10), transparent 42%),
        linear-gradient(145deg, rgba(12, 24, 42, .92), rgba(8, 14, 26, .95));
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.tp-sched-metric-label {
    display: block;
    font-size: 12px;
    color: #8fa6c3;
    margin-bottom: 6px;
}

.tp-sched-metric strong {
    font-size: 24px;
    font-weight: 950;
    color: #48ef8c;
}

.tp-sched-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tp-sched-action {
    height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid rgba(72, 239, 140, .35);
    background: linear-gradient(135deg, #42dd82, #34c978);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(72, 239, 140, .18);
}

.tp-sched-action.cyan {
    border-color: rgba(56, 214, 230, .35);
    background: linear-gradient(135deg, #38d6e6, #2bb8cf);
    box-shadow: 0 12px 28px rgba(56, 214, 230, .18);
}

.tp-sched-action.outline {
    background: transparent;
    color: #dce8f8;
    border-color: rgba(117, 159, 218, .28);
    box-shadow: none;
}

.tp-sched-action.ghost {
    background: rgba(255, 255, 255, .04);
    color: #9fb1c8;
    border-color: rgba(117, 159, 218, .18);
    box-shadow: none;
}

.tp-sched-panel {
    border-radius: 20px;
    border: 1px solid rgba(117, 159, 218, .14);
    background:
        radial-gradient(circle at 90% 0%, rgba(56, 214, 230, .08), transparent 36%),
        linear-gradient(160deg, rgba(10, 20, 36, .94), rgba(6, 12, 22, .98));
}

.tp-sched-tabs button.active {
    color: #48ef8c;
    background: rgba(72, 239, 140, .12);
    border-color: rgba(72, 239, 140, .28);
}

.tp-sched-table-wrap {
    overflow: auto;
    border-radius: 16px;
    border: 1px solid rgba(117, 159, 218, .12);
    margin-top: 14px;
}

.tp-sched-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.tp-sched-pill.green {
    color: #48ef8c;
    background: rgba(72, 239, 140, .12);
    border: 1px solid rgba(72, 239, 140, .28);
}

.tp-sched-pill.cyan {
    color: #5ee7f7;
    background: rgba(56, 214, 230, .12);
    border: 1px solid rgba(56, 214, 230, .28);
}

.tp-sched-pill.warn {
    color: #f5c76a;
    background: rgba(245, 199, 106, .12);
    border: 1px solid rgba(245, 199, 106, .28);
}

.tp-sched-pill.muted {
    color: #9fb1c8;
    background: rgba(159, 177, 200, .10);
    border: 1px solid rgba(159, 177, 200, .22);
}

.tp-sched-pill.danger {
    color: #ff6d81;
    background: rgba(255, 77, 104, .12);
    border: 1px solid rgba(255, 77, 104, .28);
}

.tp-sched-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.tp-modal.tp-sched-modal {
    border-radius: 22px;
    border: 1px solid rgba(117, 159, 218, .18);
    background:
        radial-gradient(circle at 10% 0%, rgba(56, 214, 230, .10), transparent 40%),
        linear-gradient(165deg, rgba(14, 26, 46, .97), rgba(8, 14, 26, .98));
}

.tp-sched-save {
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #42dd82, #34c978);
    color: #fff;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(72, 239, 140, .22);
}

.tp-sched-save.small,
.tp-btn-outline.small {
    height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

.tp-sched-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp-sched-success {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(72, 239, 140, .10);
    color: #9dffc4;
    font-size: 13px;
}

.tp-sched-preview {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(56, 214, 230, .10);
    color: #a8eff7;
    font-size: 13px;
}

.tp-sched-ai-title {
    margin: 8px 0 4px;
    font-size: 18px;
    font-weight: 900;
}

.tp-sched-ai-sub {
    margin: 0 0 16px;
    color: #8fa6c3;
    font-size: 13px;
}

.tp-sched-ai-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.tp-sched-suggestions {
    display: grid;
    gap: 12px;
}

.tp-sched-suggestion-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(117, 159, 218, .16);
    background: rgba(8, 16, 30, .65);
}

.tp-sched-suggestion-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.tp-sched-suggestion-card p {
    margin: 0 0 12px;
    color: #9fb1c8;
    font-size: 13px;
    line-height: 1.45;
}

.tp-sched-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

@media (max-width: 700px) {
    .tp-summary-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-summary-chart {
        gap: 8px;
    }

    .tp-summary-bar {
        width: 14px;
    }
}

/* Booking request workflow */
.tp-booking-request-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(117, 159, 218, .16);
    background: linear-gradient(165deg, rgba(12, 22, 40, .92), rgba(8, 14, 26, .88));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}

.tp-booking-request-card.compact {
    padding: 12px 14px;
}

.tp-booking-request-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.tp-booking-request-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(255, 179, 62, .14);
}

.tp-booking-request-icon.purple {
    background: rgba(147, 112, 255, .16);
}

.tp-booking-request-titles {
    flex: 1;
    min-width: 0;
}

.tp-booking-request-titles h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.tp-booking-request-time {
    font-size: 12px;
    color: #8fa6c3;
}

.tp-booking-request-details {
    display: grid;
    gap: 6px;
    margin: 0;
}

.tp-booking-request-details > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px;
    font-size: 13px;
}

.tp-booking-request-details dt {
    margin: 0;
    color: #7f95b3;
    font-weight: 600;
}

.tp-booking-request-details dd {
    margin: 0;
    color: #e8f0ff;
    font-weight: 700;
}

.tp-booking-request-note dd {
    color: #c5d4ea;
    font-weight: 500;
}

.tp-request-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tp-action-btn {
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.tp-action-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.tp-action-accept {
    background: linear-gradient(135deg, #42dd82, #34c978);
}

.tp-action-propose {
    background: linear-gradient(135deg, rgba(88, 230, 217, .75), rgba(63, 128, 255, .55));
}

.tp-action-move {
    background: linear-gradient(135deg, rgba(255, 179, 62, .85), rgba(180, 110, 36, .72));
}

.tp-action-reject {
    background: linear-gradient(135deg, rgba(255, 77, 104, .86), rgba(155, 45, 65, .78));
}

.tp-res-pill.pending {
    background: rgba(255, 179, 62, .16);
    color: #ffc46a;
    border-color: rgba(255, 179, 62, .28);
}

.tp-res-pill.rejected,
.tp-res-pill.reschedule {
    background: rgba(88, 230, 217, .12);
    color: #8ee8de;
    border-color: rgba(88, 230, 217, .22);
}

.tp-res-pill.rejected {
    background: rgba(255, 77, 104, .14);
    color: #ff8fa0;
    border-color: rgba(255, 77, 104, .28);
}

.tp-modal.tp-booking-modal.propose {
    background:
        radial-gradient(circle at 12% 0%, rgba(88, 230, 217, .10), transparent 42%),
        linear-gradient(165deg, rgba(15, 28, 48, .97), rgba(8, 14, 26, .98));
}

.tp-modal.tp-booking-modal.reject {
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 77, 104, .10), transparent 42%),
        linear-gradient(165deg, rgba(28, 18, 28, .97), rgba(8, 14, 26, .98));
}

.tp-booking-modal-lead {
    margin: 0 0 12px;
    color: #9fb1c8;
    font-size: 13px;
    line-height: 1.45;
}

.tp-booking-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tp-booking-slots {
    margin-top: 8px;
}

.tp-booking-slots-label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #8fa6c3;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.tp-booking-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-booking-slot-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(117, 159, 218, .22);
    background: rgba(8, 16, 30, .65);
    color: #d7e6ff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tp-booking-slot-chip.active {
    border-color: rgba(88, 230, 217, .45);
    background: rgba(88, 230, 217, .14);
    color: #b8fff6;
}

.tp-booking-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(12, 22, 40, .96);
    border: 1px solid rgba(117, 159, 218, .22);
    color: #e8f0ff;
    font-weight: 700;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.tp-notifications-booking-list {
    display: grid;
    gap: 12px;
}

@media (max-width: 700px) {
    .tp-booking-request-details > div {
        grid-template-columns: 1fr;
    }

    .tp-booking-modal-grid {
        grid-template-columns: 1fr;
    }
}
