* {

    box-sizing: border-box;

}



html,

body {

    margin: 0;

    padding: 0;

    min-height: 100%;

}



body {

    font-family:

        Inter,

        -apple-system,

        BlinkMacSystemFont,

        "Segoe UI",

        Arial,

        sans-serif;



    color: #1f2937;

}





/* =====================================================

   LOGIN

   ===================================================== */



.login-page {

    min-height: 100vh;



    display: flex;

    align-items: center;

    justify-content: center;



    padding: 19px;



    background:

        linear-gradient(

            135deg,

            #f4f7fb 0%,

            #e9eff7 100%

        );

}





.login-container {

    width: 100%;

    max-width: 336px;



    padding: 34px;



    background: #ffffff;



    border: 1px solid #e5e7eb;

    border-radius: 16px;



    box-shadow:

        0 16px 40px

        rgba(15, 23, 42, 0.08);

}





/* =====================================================

   BRAND

   ===================================================== */



.login-brand {

    text-align: center;

    margin-bottom: 29px;

}





.brand-logo {

    width: 46px;

    height: 46px;



    margin: 0 auto 11px;



    display: flex;

    align-items: center;

    justify-content: center;



    border-radius: 13px;



    background: #315b7d;

    color: #ffffff;



    font-size: 22px;

    font-weight: 700;

}





.login-brand h1 {

    margin: 0;



    font-size: 22px;

    font-weight: 700;



    color: #172033;

}





.login-brand p {

    margin: 4.8px 0 0;



    color: #7b8493;



    font-size: 11px;

}





/* =====================================================

   FORM

   ===================================================== */



.login-form {

    display: flex;

    flex-direction: column;

    gap: 16px;

}





.form-group {

    display: flex;

    flex-direction: column;

    gap: 5.6px;

}





.form-group label {

    font-size: 11px;

    font-weight: 600;



    color: #374151;

}





.form-group input {

    width: 100%;



    padding: 10px 11px;



    border: 1px solid #d6dbe3;

    border-radius: 8px;



    background: #ffffff;



    font-size: 12px;



    outline: none;



    transition:

        border-color 0.15s ease,

        box-shadow 0.15s ease;

}





.form-group input:focus {

    border-color: #315b7d;



    box-shadow:

        0 0 0 2.4px

        rgba(49, 91, 125, 0.12);

}





/* =====================================================

   BUTTON

   ===================================================== */



.primary-button {

    width: 100%;



    padding: 11px 14px;



    border: none;

    border-radius: 8px;



    background: #315b7d;

    color: #ffffff;



    font-size: 12px;

    font-weight: 600;



    cursor: pointer;



    transition:

        background 0.15s ease,

        transform 0.15s ease;

}





.primary-button:hover {

    background: #274b68;

}





.primary-button:active {

    transform: translateY(1px);

}





.primary-button:disabled {

    opacity: 0.65;

    cursor: default;

}





/* =====================================================

   ERROR

   ===================================================== */



.login-error {

    display: none;



    padding: 8.8px 10px;



    border-radius: 6.4px;



    background: #fef2f2;

    color: #b42318;



    font-size: 11px;

}





/* =====================================================

   MOBILE

   ===================================================== */



@media (max-width: 520px) {



    .login-page {

        padding: 16px;

    }



    .login-container {

        padding: 32px 24px;



        border-radius: 16px;

    }



}



/* =====================================================

   LOGIN - REGISTRACIJA

   ===================================================== */



.login-register {

    margin-top: 22px;



    text-align: center;

}





.login-divider {

    position: relative;



    display: flex;

    align-items: center;



    margin-bottom: 18px;



    color: #98a2b3;



    font-size: 10px;

}





.login-divider::before,

.login-divider::after {

    content: "";



    flex: 1;



    height: 1px;



    background: #e5e7eb;

}





.login-divider span {

    padding: 0 10px;



    background: #ffffff;

}





.login-register p {

    margin:

        0

        0

        10px;



    color: #667085;



    font-size: 10px;

}





/* =====================================================

   REGISTER BUTTON

   ===================================================== */



.register-button {

    width: 100%;



    display: flex;

    align-items: center;

    justify-content: center;



    padding: 10px 13px;



    border: 1px solid #315b7d;

    border-radius: 8px;



    background: #ffffff;



    color: #315b7d;



    font-size: 11px;

    font-weight: 600;



    text-decoration: none;



    transition:

        background 0.15s ease,

        color 0.15s ease,

        border-color 0.15s ease;

}





.register-button:hover {

    background: #f2f6fa;



    border-color: #274b68;



    color: #274b68;

}





/* =====================================================

   LOGIN FOOTER

   ===================================================== */



.login-footer {

    margin-top: 22px;



    color: #a0a7b2;



    font-size: 8.8px;



    text-align: center;

}





/* =====================================================

   REGISTER

   ===================================================== */



.register-page {

    min-height: 100vh;



    padding: 32px 16px;



    background:

        linear-gradient(

            135deg,

            #f4f7fb 0%,

            #e9eff7 100%

        );

}





.register-container {

    width: 100%;

    max-width: 608px;



    margin: 0 auto;



    padding: 34px;



    background: #ffffff;



    border: 1px solid #e5e7eb;

    border-radius: 16px;



    box-shadow:

        0 16px 40px

        rgba(15, 23, 42, 0.08);

}





.register-header {

    text-align: center;



    margin-bottom: 29px;

}





.register-header h1 {

    margin: 10px 0 4.8px;



    font-size: 22px;



    color: #172033;

}





.register-header p {

    margin: 0;



    color: #7b8493;

}





.form-section {

    margin-bottom: 26px;

}





.form-section h2 {

    margin:

        0

        0

        14px;



    padding-bottom: 8px;



    border-bottom:

        1px solid #e5e7eb;



    font-size: 13px;



    color: #315b7d;

}





.form-grid {

    display: grid;



    grid-template-columns:

        repeat(2, 1fr);



    gap: 14px;

}





.full-width {

    grid-column: 1 / -1;

}





.register-login {

    margin-top: 18px;



    text-align: center;



    font-size: 11px;



    color: #6b7280;

}





.register-login a {

    color: #315b7d;



    font-weight: 600;



    text-decoration: none;

}





.register-login a:hover {

    text-decoration: underline;

}





@media (max-width: 650px) {



    .register-page {

        padding: 16px;

    }



    .register-container {

        padding: 28px 22px;

    }



    .form-grid {

        grid-template-columns: 1fr;

    }



    .full-width {

        grid-column: auto;

    }

}







/* =====================================================

   COMPANY SIDEBAR

   ===================================================== */



.sidebar-company {

    margin: 6.4px 11px 16px;

    padding: 10px 11px;



    border-radius: 8px;



    background: rgba(255, 255, 255, 0.07);

}





.sidebar-company-label {

    display: block;



    margin-bottom: 4px;



    font-size: 7.2px;

    font-weight: 600;



    letter-spacing: 1px;



    opacity: 0.55;

}





.sidebar-company strong {

    display: block;



    overflow: hidden;



    font-size: 10px;



    text-overflow: ellipsis;

    white-space: nowrap;

}





/* =====================================================

   USER

   ===================================================== */



.sidebar-user {

    display: flex;

    align-items: center;

    flex-wrap: wrap;



    gap: 8px;



    margin-top: auto;

    padding: 13px;



    border-top:

        1px solid

        rgba(255, 255, 255, 0.08);

}



.logout-button {

    width: 100%;



    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 4.8px;



    background: rgba(255, 255, 255, 0.04);



    transition: background 0.2s ease, border-color 0.2s ease;

}



.logout-button:hover {

    background: rgba(255, 255, 255, 0.08);

    border-color: rgba(255, 255, 255, 0.25);

}





.sidebar-user-avatar {

    width: 29px;

    height: 29px;



    flex-shrink: 0;



    display: flex;

    align-items: center;

    justify-content: center;



    border-radius: 50%;



    background: rgba(255, 255, 255, 0.12);



    font-size: 10px;

    font-weight: 700;

}





.sidebar-user-info {

    min-width: 0;

}





.sidebar-user-info strong,

.sidebar-user-info span {

    display: block;



    overflow: hidden;



    text-overflow: ellipsis;

    white-space: nowrap;

}





.sidebar-user-info strong {

    font-size: 10px;

}





.sidebar-user-info span {

    margin-top: 2px;



    font-size: 8px;



    opacity: 0.6;

}





/* =====================================================

   HEADER ACTIONS

   ===================================================== */



.app-header-actions {

    display: flex;

    align-items: center;



    gap: 6.4px;

}





.header-button {

    width: 30px;

    height: 30px;



    border: 1px solid #e2e7ed;

    border-radius: 7.2px;



    background: #ffffff;



    cursor: pointer;

}





/* =====================================================

   WELCOME

   ===================================================== */



.dashboard-welcome {

    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 20px;



    margin-bottom: 10px;

    padding: 10px 16px;



    border: 1px solid #e4e8ed;

    border-radius: 11px;



    background: #ffffff;

}





.dashboard-label {

    display: block;



    margin-bottom: 5.6px;



    color: #718096;



    font-size: 7.2px;

    font-weight: 700;



    letter-spacing: 1px;

}





.dashboard-welcome h2 {

    margin: 0 0 3.2px;



    color: #172033;



    font-size: 16px;

}





.dashboard-welcome p {

    margin: 0;



    color: #7a8493;



    font-size: 10px;

}





.primary-action-button {

    flex-shrink: 0;



    padding: 8.8px 14px;



    border: 0;

    border-radius: 7.2px;



    background: #315b7d;



    color: #ffffff;



    font-weight: 600;



    cursor: pointer;

}





.primary-action-button:hover {

    background: #274b68;

}





/* =====================================================

   STATS

   ===================================================== */



.dashboard-stats {

    display: grid;



    grid-template-columns:

        repeat(4, minmax(0, 1fr));



    gap: 12px;



    margin-bottom: 16px;

}





.dashboard-stat-card {

    padding: 14px;



    border: 1px solid #e4e8ed;

    border-radius: 10px;



    background: #ffffff;

}





.dashboard-stat-header {

    display: flex;

    align-items: center;

    justify-content: space-between;



    margin-bottom: 12px;



    color: #697386;



    font-size: 8.8px;

    font-weight: 600;

}





.dashboard-stat-icon {

    opacity: 0.6;

}





.dashboard-stat-card > strong {

    display: block;



    margin-bottom: 3.2px;



    color: #172033;



    font-size: 22px;

}





.dashboard-stat-card small {

    color: #9aa2ad;



    font-size: 8px;

}





/* =====================================================

   GRID

   ===================================================== */



.dashboard-grid {

    display: grid;



    grid-template-columns:

        minmax(0, 2fr)

        minmax(224px, 1fr);



    gap: 14px;

}





.dashboard-panel {

    min-width: 0;



    padding: 16px;



    border: 1px solid #e4e8ed;

    border-radius: 10px;



    background: #ffffff;

}





.dashboard-panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 12px;



    margin-bottom: 16px;

}





.dashboard-panel-header h3 {

    margin: 0 0 3.2px;



    color: #253044;



    font-size: 11px;

}





.dashboard-panel-header p {

    margin: 0;



    color: #9aa2ad;



    font-size: 8px;

}





.text-button {

    border: 0;



    background: transparent;



    color: #315b7d;



    font-size: 8.8px;

    font-weight: 600;



    cursor: pointer;

}





/* =====================================================

   EMPTY STATES

   ===================================================== */



.dashboard-empty {

    min-height: 136px;



    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;



    padding: 16px;



    color: #8c96a4;



    text-align: center;

}





.dashboard-empty-small {

    min-height: 136px;

}





.empty-icon {

    width: 30px;

    height: 30px;



    display: flex;

    align-items: center;

    justify-content: center;



    margin-bottom: 8px;



    border-radius: 50%;



    background: #f1f4f7;



    color: #66778a;

}





.dashboard-empty strong {

    margin-bottom: 4px;



    color: #596579;



    font-size: 10px;

}





.dashboard-empty span {

    font-size: 8px;

}





/* =====================================================

   COMPANY INFO

   ===================================================== */



.company-info-list {

    display: flex;

    flex-direction: column;

}





.company-info-list > div {

    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 16px;



    padding: 8.8px 0;



    border-bottom: 1px solid #eef1f4;

}





.company-info-list > div:last-child {

    border-bottom: 0;

}





.company-info-list span {

    color: #8a94a3;



    font-size: 8.8px;

}





.company-info-list strong {

    color: #344054;



    font-size: 8.8px;



    text-align: right;

}





/* =====================================================

   RESPONSIVE

   ===================================================== */



@media (max-width: 1100px) {



    .dashboard-stats {

        grid-template-columns:

            repeat(2, minmax(0, 1fr));

    }





    .dashboard-grid {

        grid-template-columns: 1fr;

    }



}





@media (max-width: 700px) {



    .dashboard-welcome {

        align-items: flex-start;

        flex-direction: column;

    }





    .dashboard-stats {

        grid-template-columns: 1fr;

    }





    .primary-action-button {

        width: 100%;

    }



}













/* =====================================================

   APP LAYOUT

   ===================================================== */



.app-page {

    margin: 0;



    min-height: 100vh;



    background: #f5f7fa;

}





.app-layout {

    min-height: 100vh;



    display: flex;

}





/* =====================================================

   SIDEBAR

   ===================================================== */



.sidebar {

    position: fixed;



    left: 0;

    top: 0;

    bottom: 0;



    width: 196px;



    display: flex;

    flex-direction: column;



    padding: 18px 11px;



    background: #172536;



    color: #ffffff;

}





.sidebar-brand {

    display: flex;

    align-items: center;



    gap: 10px;



    padding:

        3.2px

        8px

        22px;

}





.sidebar-logo {

    width: 32px;

    height: 32px;



    display: flex;

    align-items: center;

    justify-content: center;



    flex-shrink: 0;



    border-radius: 8.8px;



    background: #ffffff;

    color: #315b7d;



    font-size: 16px;

    font-weight: 700;

}





.sidebar-brand strong {

    display: block;



    font-size: 14px;

}





.sidebar-brand span {

    display: block;



    margin-top: 2px;



    color: #9eabba;



    font-size: 10px;

}





.sidebar-nav {

    display: flex;

    flex-direction: column;



    gap: 4px;

}





.nav-item {

    width: 100%;



    display: flex;

    align-items: center;



    gap: 8.8px;



    padding: 8.8px 10px;



    border: none;

    border-radius: 6.4px;



    background: transparent;



    color: #b8c2ce;



    font-size: 11px;

    text-align: left;



    cursor: pointer;

}





.nav-item:hover {

    background: rgba(255, 255, 255, 0.06);



    color: #ffffff;

}





.nav-item.active {

    background: #315b7d;



    color: #ffffff;

}





.nav-icon {

    width: 16px;



    text-align: center;

}





.sidebar-bottom {

    margin-top: auto;



    padding-top: 16px;



    border-top:

        1px solid

        rgba(255, 255, 255, 0.08);

}





.logout-button {

    color: #b8c2ce;

}





/* =====================================================

   MAIN

   ===================================================== */



.app-main {

    width: calc(100% - 196px);



    min-height: 100vh;



    margin-left: 196px;

}





/* =====================================================

   HEADER

   ===================================================== */



.app-header {

    min-height: 67px;



    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 16px;



    padding: 14px 26px;



    background: #ffffff;



    border-bottom:

        1px solid #e5e7eb;

}





.app-header h1 {

    margin: 0;



    font-size: 18px;



    color: #172033;

}





.app-header p {

    margin: 3.2px 0 0;



    color: #7b8493;



    font-size: 10px;

}





.header-user {

    display: flex;

    align-items: center;



    gap: 8px;

}





.header-user-avatar {

    width: 30px;

    height: 30px;



    display: flex;

    align-items: center;

    justify-content: center;



    border-radius: 50%;



    background: #e7eef5;



    color: #315b7d;



    font-weight: 700;

}





.header-user strong {

    display: block;



    font-size: 11px;

}





.header-user span {

    display: block;



    margin-top: 2px;



    color: #89919d;



    font-size: 8.8px;

}





/* =====================================================

   CONTENT

   ===================================================== */



.app-content {

    padding: 24px 26px;

}





/* =====================================================

   STATS

   ===================================================== */



.stats-grid {

    display: grid;



    grid-template-columns:

        repeat(4, minmax(0, 1fr));



    gap: 14px;



    margin-bottom: 22px;

}





.stat-card {

    min-height: 108px;



    display: flex;

    flex-direction: column;



    padding: 17px;



    background: #ffffff;



    border:

        1px solid #e6e9ee;



    border-radius: 10px;

}





.stat-label {

    color: #697386;



    font-size: 10px;

    font-weight: 600;

}





.stat-value {

    margin-top: 10px;



    color: #172033;



    font-size: 24px;

    line-height: 1;

}





.stat-description {

    margin-top: auto;



    padding-top: 10px;



    color: #929aa6;



    font-size: 10px;

}





/* =====================================================

   SECTION

   ===================================================== */



.dashboard-section,

.table-card,

.info-panel {

    background: #ffffff;



    border:

        1px solid #e6e9ee;



    border-radius: 10px;

}





.dashboard-section {

    padding: 18px;

}





.section-header {

    display: flex;

    align-items: center;

    justify-content: space-between;



    gap: 16px;



    margin-bottom: 14px;

}





.section-header h2 {

    margin: 0;



    color: #172033;



    font-size: 14px;

}





.section-header p {

    margin: 3.2px 0 0;



    color: #8a929e;



    font-size: 10px;

}





.info-panel {

    overflow: hidden;

}





.info-row {

    display: flex;

    align-items: center;

    justify-content: space-between;



    padding: 12px 14px;



    border-bottom:

        1px solid #edf0f3;

}





.info-row:last-child {

    border-bottom: none;

}





/* =====================================================

   TABLE

   ===================================================== */



.table-card {

    overflow: hidden;

}





.table-wrapper {

    overflow-x: auto;

}





.admin-table {

    width: 100%;



    border-collapse: collapse;



    background: #ffffff;

}





.admin-table th {

    padding: 10px 13px;



    background: #f8f9fb;



    border-bottom:

        1px solid #e5e7eb;



    color: #667085;



    font-size: 10px;

    font-weight: 600;

    text-align: left;



    white-space: nowrap;

}





.admin-table td {

    padding: 11px 13px;



    border-bottom:

        1px solid #edf0f3;



    color: #344054;



    font-size: 10px;

}





.admin-table tbody tr:last-child td {

    border-bottom: none;

}





.admin-table tbody tr:hover {

    background: #fafbfc;

}





.table-secondary {

    margin-top: 2.4px;



    color: #98a0ab;



    font-size: 8.8px;

}





/* =====================================================

   STATUS

   ===================================================== */



.status-badge {

    display: inline-flex;

    align-items: center;



    padding: 3.2px 6.4px;



    border-radius: 16px;



    font-size: 8.8px;

    font-weight: 600;

}





.status-active {

    background: #ecfdf3;

    color: #027a48;

}





.status-inactive {

    background: #f2f4f7;

    color: #667085;

}





.status-admin {

    background: #eef4ff;

    color: #315b7d;

}





/* =====================================================

   BUTTONS

   ===================================================== */



.secondary-button {

    padding: 7.2px 11px;



    border:

        1px solid #d5dae1;



    border-radius: 6.4px;



    background: #ffffff;



    color: #344054;



    font-weight: 600;



    cursor: pointer;

}





.secondary-button:hover {

    background: #f8f9fb;

}





/* =====================================================

   STATES

   ===================================================== */



.page-loading,

.empty-table {

    padding: 28px;



    color: #8a929e;



    text-align: center;

}





.page-error {

    padding: 13px;



    border:

        1px solid #fecaca;



    border-radius: 7.2px;



    background: #fef2f2;



    color: #b42318;

}





/* =====================================================

   RESPONSIVE

   ===================================================== */



@media (max-width: 1000px) {



    .stats-grid {

        grid-template-columns:

            repeat(2, 1fr);

    }



}





@media (max-width: 700px) {



    .sidebar {

        width: 70px;



        padding:

            18px

            9px;

    }



    .sidebar-brand > div:last-child,

    .nav-item:not(.active) .nav-text {

        display: none;

    }



    .sidebar-brand {

        padding:

            4px

            6px

            25px;

    }



    .nav-item {

        justify-content: center;



        padding:

            12px

            8px;



        font-size: 0;

    }



    .nav-icon {

        font-size: 17px;

    }



    .logout-button {

        font-size: 12px;

    }



    .app-main {

        width:

            calc(100% - 70px);



        margin-left: 70px;

    }



    .app-header {

        padding:

            15px

            18px;

    }



    .app-content {

        padding:

            20px

            16px;

    }



    .stats-grid {

        grid-template-columns: 1fr;

    }



}

/* =====================================================
   ANASOF THEME — PLAVO-SIVA PALETA
   Dopuna postojećih stilova bez izmjena HTML/JS
   ===================================================== */
:root {
    --anasof-sidebar: #1c1e23;
    --anasof-header: #19313c;
    --anasof-accent: #496d80;
    --anasof-accent-hover: #36586a;
    --anasof-bg: #f2f5f7;
    --anasof-surface: #ffffff;
    --anasof-border: #dce3e8;
    --anasof-text: #24323b;
    --anasof-muted: #687985;
}

body { color: var(--anasof-text); }
.login-page, .register-page { background: linear-gradient(135deg, #f5f7f9, #dce3e8); }
.app-page { background: var(--anasof-bg); }
.sidebar {
    background: var(--anasof-sidebar);
    color: #edf2f5;
    z-index: 20;
}
.sidebar-brand { min-width: 0; }
.sidebar-logo { background: var(--anasof-header); color: #fff; }
.sidebar-brand-text { min-width: 0; }
.sidebar-brand-text strong { display: block; font-size: 14px; }
.sidebar-brand-text span { display: block; margin-top: 2px; color: #9eacb6; font-size: 10px; }
.sidebar-company { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.sidebar-nav { min-height: 0; overflow-y: auto; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 7.2px;
    color: #bac7d0;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: background .18s ease, color .18s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: var(--anasof-header); color: #fff; box-shadow: inset 2.4px 0 0 #8cabb9; }
.sidebar-icon { width: 16px; flex-shrink: 0; text-align: center; font-size: 14px; }
.sidebar-nav-divider { height: 1px; margin: 10px 6.4px; background: rgba(255,255,255,.10); }
.sidebar-user { color: #edf2f5; }
.sidebar-user-info { flex: 1; }
.sidebar-user-avatar { background: #344c58; color: #fff; }
.sidebar .logout-button {
    width: 100%;
    padding: 8px 10px;
    color: #dce6eb;
    font-size: 10px;
    text-align: center;
    cursor: pointer;
}
.sidebar .logout-button:hover { background: rgba(255,255,255,.11); color: #fff; }
.app-header { background: #fff; border-bottom: 1px solid var(--anasof-border); }
.app-header h1, .dashboard-welcome h2, .dashboard-stat-card > strong,
.dashboard-panel-header h3, .login-brand h1, .register-header h1 { color: var(--anasof-text); }
.app-header p, .dashboard-welcome p, .dashboard-panel-header p { color: var(--anasof-muted); }
.dashboard-welcome, .dashboard-stat-card, .dashboard-panel,
.dashboard-section, .table-card, .info-panel, .login-container, .register-container {
    background: var(--anasof-surface);
    border-color: var(--anasof-border);
    box-shadow: 0 2.4px 11px rgba(25,49,60,.035);
}
.primary-button, .primary-action-button { background: var(--anasof-accent); color: #fff; }
.primary-button:hover, .primary-action-button:hover { background: var(--anasof-accent-hover); }
.register-button { border-color: var(--anasof-accent); color: var(--anasof-accent); }
.register-button:hover { border-color: var(--anasof-accent-hover); color: var(--anasof-accent-hover); background: #f1f5f7; }
.text-button, .register-login a, .form-section h2 { color: var(--anasof-accent); }
.brand-logo { background: var(--anasof-header); }
.form-group input:focus { border-color: var(--anasof-accent); box-shadow: 0 0 0 2.4px rgba(73,109,128,.14); }
.header-button { border-color: var(--anasof-border); color: var(--anasof-text); }
.header-button:hover { background: #edf2f5; }
.admin-table th { background: #e9eff2; color: #354d5a; border-color: var(--anasof-border); }
.admin-table td { border-color: #e7ecef; }
.admin-table tbody tr:hover { background: #f5f8fa; }
.status-admin { background: #e8f0f4; color: #36586a; }
.header-user-avatar { background: #e8f0f4; color: var(--anasof-header); }
.empty-icon { background: #edf2f5; color: var(--anasof-accent); }

/* Fokus vidljiv i pri korištenju tastature */
.sidebar-link:focus-visible, button:focus-visible, a:focus-visible {
    outline: 2px solid #8cabb9;
    outline-offset: 2px;
}

/* U HTML-u se koriste sidebar-link/sidebar-icon, ne nav-item/nav-icon */
@media (max-width: 700px) {
    .sidebar { width: 70px; padding: 18px 9px; }
    .sidebar-brand { justify-content: center; padding: 4px 0 20px; }
    .sidebar-brand-text, .sidebar-company, .sidebar-link span:not(.sidebar-icon),
    .sidebar-user-info { display: none; }
    .sidebar-link { justify-content: center; padding: 12px 8px; }
    .sidebar-icon { font-size: 19px; }
    .sidebar-nav-divider { margin: 10px 3px; }
    .sidebar-user { padding: 12px 0; justify-content: center; }
    .sidebar-user-avatar { width: 34px; height: 34px; }
    .sidebar .logout-button { padding: 8px 3px; font-size: 10px; }
    .app-main { width: calc(100% - 70px); margin-left: 70px; }
    .app-header { min-height: 70px; padding: 14px 16px; }
    .app-header h1 { font-size: 19px; }
    .app-content { padding: 18px 14px; }
}
@media (max-width: 420px) {
    .dashboard-welcome { padding: 20px 17px; }
    .dashboard-panel { padding: 16px; }
    .app-header p { font-size: 11px; }
}


/*SVETLA NIJANSA CRNE
.sidebar {
    background: #263C49;
    color: #D8E2E8;
}

.sidebar-link.active,
.nav-item.active {
    background: #42647A;
    color: #FFFFFF;
}*/


/* =====================================================
   EMAIL VERIFICATION
===================================================== */

.email-verification-info {
    text-align: center;
    padding: 22px 13px;
    max-width: 384px;
    margin: 0 auto;
}

.verification-icon {
    font-size: 38px;
    color: #557992;
    margin-bottom: 13px;
}

.email-verification-info h2 {
    font-size: 18px;
    margin-bottom: 14px;
    color: #253746;
}

.email-verification-info p {
    font-size: 11px;
    line-height: 1.7;
    color: #52616b;
    margin-bottom: 11px;
}

.email-verification-info .verification-email {
    font-weight: 700;
    color: #557992;
    overflow-wrap: anywhere;
}

.verification-note {
    font-size: 10px !important;
    color: #7a8790 !important;
}

.verification-button {
    background: #557992;
    color: white;
    border: none;
    border-radius: 4.8px;
    padding: 10px 19px;
    cursor: pointer;
    margin: 10px 0;
}

.verification-button:hover {
    background: #45667e;
}

.verification-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verification-login {
    display: block;
    margin-top: 16px;
    color: #557992;
    font-size: 11px;
    text-decoration: none;
}

#resendVerificationMessage {
    font-size: 10px;
}


/* =====================================================
   REGISTRACIJA KORISNIKA
===================================================== */

.register-user-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f6f8;
    padding: 16px;
}

.register-user-card {
    width: 100%;
    max-width: 336px;
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6.4px 19px rgba(0, 0, 0, 0.08);
}

.register-user-card h2 {
    color: #253746;
    margin-bottom: 6.4px;
}

.register-user-card label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    margin-top: 11px;
    margin-bottom: 4px;
}

.register-user-card input {
    width: 100%;
    box-sizing: border-box;
    padding: 8.8px;
    border: 1px solid #d1d9df;
    border-radius: 4.8px;
}

.register-user-card button {
    width: 100%;
    background: #557992;
    color: #ffffff;
    border: none;
    border-radius: 4.8px;
    padding: 10px;
    margin-top: 16px;
    cursor: pointer;
}

.register-user-card button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#registerUserError {
    color: #b42318;
    font-size: 10px;
}

#registerUserSuccess {
    text-align: center;
    padding: 14px 0;
}

#registerUserSuccess[hidden],
#registerUserForm[hidden] {
    display: none !important;
}

.register-email-note {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #718096;
    line-height: 1.4;
}

.login-register .register-button {
    display: block;
    text-align: center;
    margin-top: 8px;
}

.register-company-button {
    background: transparent;
    color: #557992;
    border: 1px solid #557992;
}

.register-company-button:hover {
    background: #edf3f7;
}

/* =====================================================
   ADMINISTRATIVNI MENI
===================================================== */

.sidebar-nav-title {
    margin: 11px 10px 5.6px;
    color: #8397a5;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 700px) {

    .sidebar-nav-title {
        display: none;
    }

}

/* =====================================================
   SPA CONTENT
===================================================== */

#dashboardContent[hidden],
#pageContent[hidden] {
    display: none !important;
}

#pageContent {
    min-width: 0;
}

#pageContent .dashboard-panel {
    min-height: 200px;
}

/* =====================================================
   ADMIN MODAL
===================================================== */

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    background: rgba(15, 23, 42, 0.55);
}

.admin-modal {
    width: 100%;
    max-width: 352px;
    padding: 19px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 14px;
}

.admin-modal-header button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.admin-modal .form-group {
    margin-bottom: 14px;
}

.admin-modal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6dbe3;
    border-radius: 6.4px;
    background: #ffffff;
}

.admin-modal-note {
    margin: 10px 0;
    color: #718096;
    font-size: 10px;
    line-height: 1.5;
}

.admin-modal-message {
    margin: 10px 0;
    color: #b42318;
    font-size: 10px;
}

.admin-modal-message.success {
    color: #027a48;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.admin-modal-actions .primary-action-button {
    padding: 8px 12px;
}

@media (max-width: 520px) {
    .admin-modal {
        padding: 18px;
    }

    .admin-modal-actions {
        flex-direction: column-reverse;
    }
}

/* =====================================================
   POZIVNICE
===================================================== */

.invitation-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e9ef;
}

.invitation-card h4 {
    margin: 0 0 6.4px;
    font-size: 12px;
    color: #19313c;
}

.invitation-card p {
    margin: 3.2px 0;
    font-size: 10px;
    color: #667085;
}

.invitation-actions {
    display: flex;
    gap: 6.4px;
}

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

    .invitation-actions {
        width: 100%;
    }

    .invitation-actions button {
        flex: 1;
    }
}

/* =====================================================
   IZBOR AKTIVNE KOMPANIJE
===================================================== */

.sidebar-company-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6.4px;
}

.sidebar-company-selector strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-switch-btn {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4.8px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
}

.company-switch-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.company-dropdown {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 3.2px;
}

.company-dropdown[hidden],
.company-switch-btn[hidden] {
    display: none !important;
}

.company-dropdown-item {
    width: 100%;
    padding: 7.2px 8px;
    border: none;
    border-radius: 5.6px;
    background: transparent;
    color: #e5e7eb;
    text-align: left;
    cursor: pointer;
    font-size: 10px;
}

.company-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.10);
}

.company-dropdown-item.active {
    background: rgba(85, 121, 146, 0.30);
    font-weight: 600;
}

/* =====================================================
   PREGLED KOMPANIJE I LICENCE
===================================================== */

.company-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.company-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.company-info-grid span {
    font-size: 10px;
    color: #84919b;
}

.company-info-grid strong {
    font-size: 10px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.company-license-progress {
    margin-top: 22px;
}

.company-license-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 10px;
}

.company-license-progress-track {
    height: 6.4px;
    background: #e3e9ed;
    border-radius: 6.4px;
    overflow: hidden;
}

.company-license-progress-track > div {
    height: 100%;
    background: #557992;
    border-radius: 6.4px;
}

@media (max-width: 1000px) {
    .company-overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .company-info-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   UREĐIVANJE KOMPANIJE
===================================================== */

.company-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.company-edit-btn {
    padding: 6.4px 10px;
    border: 1px solid #557992;
    border-radius: 5.6px;
    background: transparent;
    color: #557992;
    font-size: 10px;
    cursor: pointer;
}

.company-edit-btn:hover {
    background: #edf3f6;
}

.company-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    background: rgba(0, 0, 0, 0.5);
}

.company-modal {
    width: 100%;
    max-width: 448px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.company-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.company-modal-header h3 {
    margin: 0;
}

.company-modal-header button {
    border: none;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

.company-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.company-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 4.8px;
    font-size: 10px;
    font-weight: 600;
}

.company-form-grid input {
    width: 100%;
    min-width: 0;
    padding: 8px;
    border: 1px solid #d6dfe5;
    border-radius: 5.6px;
    font-size: 10px;
    box-sizing: border-box;
}

.company-form-grid input:focus {
    outline: none;
    border-color: #557992;
}

.company-form-full {
    grid-column: 1 / -1;
}

.company-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 19px;
}

.company-modal-actions button {
    padding: 7.2px 12px;
    border: 1px solid #d6dfe5;
    border-radius: 5.6px;
    background: #ffffff;
    cursor: pointer;
}

.company-modal-actions button[type="submit"] {
    background: #557992;
    border-color: #557992;
    color: #ffffff;
}

.company-modal-actions button:disabled {
    opacity: 0.6;
    cursor: wait;
}

@media (max-width: 600px) {
    .company-form-grid {
        grid-template-columns: 1fr;
    }

    .company-form-full {
        grid-column: auto;
    }
}

/* =====================================================
   DETALJI ULOGE
===================================================== */

.role-privileges-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6.4px;
    padding-left: 16px;
    margin-top: 11px;
}

.role-privileges-list li {
    font-size: 10px;
    padding: 4px 0;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .role-privileges-list {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   KREIRANJE ULOGE
===================================================== */

.roles-header-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}

.role-modal {
    max-width: 544px;
}

.role-name-label {
    display: flex;
    flex-direction: column;
    gap: 5.6px;
    font-size: 10px;
    font-weight: 600;
}

.role-name-label input {
    padding: 8px;
    border: 1px solid #d6dfe5;
    border-radius: 5.6px;
    font-size: 10px;
}

.role-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.role-privilege-group {
    padding: 10px;
    border: 1px solid #e0e6eb;
    border-radius: 6.4px;
}

.role-group-title {
    display: flex;
    align-items: center;
    gap: 6.4px;
    margin-bottom: 10px;
    font-size: 10px;
    cursor: pointer;
}

.role-privilege-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.role-privilege-options label {
    display: flex;
    align-items: center;
    gap: 6.4px;
    font-size: 10px;
    cursor: pointer;
}

.role-privilege-group input[type="checkbox"] {
    accent-color: #557992;
}

@media (max-width: 600px) {
    .role-groups {
        grid-template-columns: 1fr;
    }

    .roles-header-actions {
        gap: 8px;
    }
}

/* =====================================================
   AKCIJE U TABELI ULOGA
===================================================== */

.role-table-actions {
    display: flex;
    align-items: center;
    gap: 4.8px;
    flex-wrap: wrap;
}
/* =====================================================
   ŠIROKI MODAL - ČLANOVI SEKTORA
===================================================== */

.admin-modal-overlay .admin-modal.admin-modal-clanovi {
    width: 880px !important;
    max-width: 95vw !important;
    min-width: 0;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-modal-clanovi .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.admin-modal-clanovi .admin-table {
    width: 100%;
    min-width: 640px;
}

.admin-modal-clanovi .admin-table td:last-child {
    white-space: nowrap;
}

@media (max-width: 768px) {

    .admin-modal-overlay .admin-modal.admin-modal-clanovi {
        width: 96vw !important;
        max-width: 96vw !important;
        padding: 15px;
    }

}


/* =====================================================
   TIKETI
===================================================== */

.ticket-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ticket-toolbar h2 {
    margin: 0;
    font-size: 16px;
}

.ticket-toolbar p {
    margin: 4px 0 0;
    color: #758391;
    font-size: 10px;
}

.ticket-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6.4px;
}

.ticket-filter {
    padding: 7.2px 12px;
    border: 1px solid #dce3e9;
    border-radius: 5.6px;
    background: #ffffff;
    color: #536577;
    cursor: pointer;
    font-size: 10px;
}

.ticket-filter.active {
    background: #557992;
    border-color: #557992;
    color: #ffffff;
}

.ticket-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ticket-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.ticket-table th,
.ticket-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #e5eaf0;
}

.ticket-table th {
    background: #f3f6f8;
    color: #526779;
    font-weight: 600;
}

.ticket-table tbody tr:nth-child(even) {
    background: #f8fafb;
}

.ticket-table tbody tr:hover {
    background: #eef3f6;
}

@media (max-width: 600px) {
    .ticket-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ticket-table {
        min-width: 650px;
    }
}


/* =====================================================
   NOVI TIKET
===================================================== */

.ticket-form-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-form-card {
    max-width: 680px;
    padding: 20px;
}

.ticket-field {
    display: flex;
    flex-direction: column;
    gap: 5.6px;
    margin-bottom: 16px;
}

.ticket-field label {
    font-size: 10px;
    font-weight: 600;
    color: #415569;
}

.ticket-field input,
.ticket-field select,
.ticket-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8.8px 10px;
    border: 1px solid #d6e0e7;
    border-radius: 5.6px;
    background: #fff;
    color: #263746;
    font: inherit;
    font-size: 10px;
}

.ticket-field textarea {
    resize: vertical;
}

.ticket-field input:focus,
.ticket-field select:focus,
.ticket-field textarea:focus {
    outline: none;
    border-color: #557992;
    box-shadow: 0 0 0 2.4px rgba(85, 121, 146, 0.12);
}

.ticket-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ticket-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.ticket-secondary-btn {
    padding: 8px 13px;
    border: 1px solid #d6e0e7;
    border-radius: 5.6px;
    background: #fff;
    color: #415569;
    cursor: pointer;
    font-size: 10px;
}

.ticket-secondary-btn:hover {
    background: #f3f6f8;
}

.ticket-form-message {
    font-size: 10px;
    color: #557992;
}

.ticket-form-message:empty {
    display: none;
}

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

    .ticket-form-card {
        padding: 16px;
    }
}


/* =====================================================
   DETALJI TIKETA
===================================================== */

.ticket-detail-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ticket-detail-card {
    padding: 19px;
}

.ticket-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ticket-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-detail-grid span {
    color: #7a8996;
    font-size: 10px;
}

.ticket-detail-grid strong {
    color: #263746;
    font-size: 11px;
}

.ticket-description {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e5eaf0;
}

.ticket-description h3 {
    margin: 0 0 10px;
    font-size: 12px;
}

.ticket-description p {
    white-space: pre-wrap;
    line-height: 1.6;
    color: #455868;
    font-size: 10px;
}

.ticket-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
}

@media (max-width: 700px) {
    .ticket-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 450px) {
    .ticket-detail-grid {
        grid-template-columns: 1fr;
    }
}

.ticket-open-btn {
    border: 1px solid #d8e1eb;
    background: #ffffff;
    color: #2563a6;
    border-radius: 5.6px;
    padding: 4.8px 10px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s ease;
}

.ticket-open-btn:hover {
    background: #edf5ff;
    border-color: #9bbde3;
}

.ticket-row {
    cursor: default;
}

.ticket-row:hover {
    background: #f4f7fb;
}


/* =====================================================
   MODAL DETALJA TIKETA
===================================================== */

.ticket-detail-overlay,
.ticket-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 45, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    z-index: 5000;
}

.ticket-detail-modal {
    width: min(680px, 100%);
    max-height: 90vh;
    background: #ffffff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.ticket-modal-header,
.ticket-confirm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e6eaf0;
}

.ticket-modal-header strong {
    font-size: 12px;
}

.ticket-modal-close,
.ticket-confirm-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
}

.ticket-modal-content {
    overflow-y: auto;
    padding: 16px;
}

.ticket-detail-heading h2 {
    font-size: 15px;
    margin: 0 0 4px;
}

.ticket-detail-heading p {
    color: #64748b;
    margin: 0 0 12px;
}

.ticket-detail-message {
    color: #b42318;
    font-size: 10px;
}

/* =====================================================
   MODAL POTVRDE
===================================================== */

.ticket-confirm-overlay {
    z-index: 5100;
}

.ticket-confirm-modal {
    width: min(344px, 100%);
    background: white;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.ticket-confirm-header h3 {
    margin: 0;
    font-size: 13px;
}

.ticket-confirm-body {
    padding: 16px;
}

.ticket-confirm-body p {
    margin: 0 0 13px;
    font-size: 11px;
}

.ticket-confirm-body label {
    display: block;
    margin-bottom: 5.6px;
    font-size: 10px;
    font-weight: 600;
}

.ticket-confirm-body input {
    box-sizing: border-box;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5.6px;
    font-size: 11px;
}

.ticket-confirm-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e6eaf0;
}

.ticket-confirm-error {
    color: #b42318;
    font-size: 10px;
    margin-top: 6.4px;
}

@media (max-width: 600px) {
    .ticket-detail-overlay,
    .ticket-confirm-overlay {
        padding: 8px;
    }

    .ticket-modal-content {
        padding: 12px;
    }

    .ticket-detail-modal {
        max-height: 95vh;
    }
}


/* =====================================================
   RAZLOG VRAĆANJA TIKETA
===================================================== */

.ticket-confirm-body textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5.6px;
    font-family: inherit;
    font-size: 10px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.ticket-confirm-body textarea:focus {
    border-color: #235565;
    box-shadow: 0 0 0 2.4px rgba(222, 104, 53, 0.12);
}

/* =====================================================
   ISTORIJA AKTIVNOSTI
===================================================== */


.ticket-history-section {
margin-top: 19px;
padding-top: 14px;
border-top: 1px solid #e5eaf0;
}

.ticket-history-section h3 {
font-size: 12px;
font-weight: 650;
color: #263445;
margin: 0 0 16px;
}

.ticket-history-list {
padding-left: 6.4px;
}

.ticket-history-item {
display: flex;
position: relative;
gap: 11px;
padding-bottom: 18px;
}

.ticket-history-item:not(:last-child)::before {
content: "";
position: absolute;
left: 4.8px;
top: 13px;
bottom: 0;
width: 1px;
background: #dce3eb;
}

.ticket-history-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #235565;
border: 2.4px solid #fff0e9;
box-sizing: border-box;
flex-shrink: 0;
position: relative;
z-index: 1;
margin-top: 2.4px;
}

.ticket-history-content {
min-width: 0;
flex: 1;
}

.ticket-history-content strong {
display: block;
font-size: 10px;
color: #263445;
margin-bottom: 3.2px;
}

.ticket-history-meta {
font-size: 10px;
color: #7b8797;
}

.ticket-history-extra {
font-size: 10px;
color: #526579;
margin-top: 5.6px;
}

.ticket-history-reason {
margin-top: 7.2px;
padding: 7.2px 10px;
border-radius: 5.6px;
background: #f5f7fa;
font-size: 10px;
color: #475569;
white-space: pre-wrap;
overflow-wrap: anywhere;
}

.ticket-history-empty {
padding: 12px;
color: #7b8797;
font-size: 10px;
}

/* =====================================================
   ISTORIJA - PRIKAZ / SAKRIVANJE
===================================================== */

.ticket-history-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 6.4px;
    background: #f8fafc;
    color: #334155;
    font-size: 10px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.ticket-history-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ticket-history-arrow {
    display: inline-block;
    margin-right: 5.6px;
    color: #235565;
    font-size: 13px;
}

.ticket-history-toggle-text {
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
}

.ticket-history-collapsible {
    padding: 14px 8px 0;
}

.ticket-history-collapsible[hidden] {
    display: none !important;
}

/* =====================================================
   KOMENTARI TIKETA
===================================================== */


.ticket-comments-section {
margin-top: 11px;
}

.ticket-comments-toggle {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
padding: 10px 11px;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6.4px;
color: #334155;
font-size: 10px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
text-align: left;
}

.ticket-comments-toggle:hover {
background: #f1f5f9;
border-color: #cbd5e1;
}

.ticket-comments-arrow {
color: #235565;
margin-right: 5.6px;
font-size: 13px;
}

.ticket-comments-toggle-text {
font-size: 10px;
font-weight: 500;
color: #64748b;
}

.ticket-comments-content {
padding: 12px 4px 0;
}

.ticket-comments-content[hidden] {
display: none !important;
}

.ticket-comments-list {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 13px;
}

.ticket-comment {
padding: 10px 11px;
background: #f8fafc;
border: 1px solid #edf0f4;
border-radius: 6.4px;
}

.ticket-comment-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 6.4px;
margin-bottom: 6.4px;
}

.ticket-comment-header strong {
font-size: 10px;
color: #334155;
}

.ticket-comment-header span {
font-size: 8.8px;
color: #94a3b8;
}

.ticket-comment-text {
font-size: 10px;
line-height: 1.55;
color: #475569;
white-space: pre-wrap;
overflow-wrap: anywhere;
}

.ticket-comment-form {
border-top: 1px solid #e2e8f0;
padding-top: 11px;
}

.ticket-comment-form textarea {
width: 100%;
min-height: 68px;
box-sizing: border-box;
padding: 8px 10px;
border: 1px solid #cbd5e1;
border-radius: 5.6px;
font-family: inherit;
font-size: 10px;
resize: vertical;
outline: none;
}

.ticket-comment-form textarea:focus {
border-color: #235565;
box-shadow: 0 0 0 2.4px rgba(222,104,53,.12);
}

.ticket-comment-form-bottom {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-top: 8px;
}

#ticketCommentMessage {
font-size: 10px;
color: #dc2626;
}

.ticket-comments-empty,
.ticket-comments-loading {
padding: 11px;
font-size: 10px;
color: #94a3b8;
text-align: center;
}

.ticket-comments-error {
padding: 10px;
color: #dc2626;
font-size: 10px;
}
.ticket-comments-closed {
    padding: 10px 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 5.6px;
    color: #64748b;
    font-size: 10px;
}

/* Filteri pregleda tiketa */
.ticket-advanced-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    padding: 0 0 13px;
    margin-bottom: 11px;
    border-bottom: 1px solid #e2e8f0;
}
.ticket-advanced-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 112px;
    flex: 1 1 120px;
    font-size: 10px;
    font-weight: 600;
    color: #475569;
}
.ticket-advanced-filters select,
.ticket-advanced-filters input,
.ticket-advanced-filters .flatpickr-input {
    width: 100%;
    min-height: 28px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 4.8px;
    background: #fff;
    padding: 5.6px 7.2px;
    color: #334155;
    font: inherit;
    font-size: 10px;
}
.ticket-advanced-filters .ticket-secondary-btn { min-height: 28px; }
.ticket-list-summary { color: #64748b; font-size: 10px; margin: 0 0 7.2px; }
.ticket-table-wrap { overflow-x: auto; }
.ticket-table { min-width: 792px; }
@media (max-width: 640px) {
    .ticket-advanced-filters label { flex-basis: calc(50% - 8px); min-width: 0; }
}

/* Dodatak na postojeći style.css: klasični raspored početne stranice */
#dashboardContent .dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:13px;}
#dashboardContent .dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(208px,1fr);gap:11px;align-items:start;}
#dashboardContent .dashboard-panel{min-width:0;}
.ad-classic-table-wrap{overflow-x:auto;}
.ad-classic-table{width:100%;border-collapse:collapse;font-size:10px;}
.ad-classic-table th,.ad-classic-table td{padding:7.2px 6.4px;text-align:left;border-bottom:1px solid #edf0f4;white-space:nowrap;}
.ad-classic-table th{background:#f7f9fb;color:#607084;font-weight:600;}
.ad-classic-table tbody tr:nth-child(even){background:#fbfcfd;}
.ad-classic-table tbody tr{cursor:pointer;}
.ad-classic-table tbody tr:hover{background:#fff5ef;}
.ad-classic-table td:nth-child(2){white-space:normal;min-width:104px;}
.ad-ticket-number{background:none;border:0;padding:0;color:#2b6cb0;cursor:pointer;font:inherit;font-weight:600;}
.ad-error{color:#b42318;}
@media(max-width:900px){#dashboardContent .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr));}#dashboardContent .dashboard-grid{grid-template-columns:1fr;}}
@media(max-width:480px){#dashboardContent .dashboard-stats{gap:8px;}}


@media (max-width: 768px) {
    .ticket-form-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =====================================================
   DNEVNI ZADACI — dopuna glavnog style.css
   Koristi postojeće dashboard, admin-modal i button klase.
   ===================================================== */

   /* Gornja traka tabele dnevnih aktivnosti */

.daily-table-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.daily-table-topbar .daily-activity-tabs {
    margin-bottom: 0 !important;
}

.daily-table-count {
    font-size: 11px;
    color: #8191a6;
    white-space: nowrap;
}

.daily-table-count strong {
    color: #355574;
    font-size: 12px;
    font-weight: 700;
}

[hidden] { display: none !important; }

.daily-module .daily-header-panel,
.daily-module .daily-section { margin-bottom: 11px; }

.daily-module .daily-page-heading { flex-wrap: wrap; }

.daily-module .daily-toolbar,
.daily-module .daily-view-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.daily-module .daily-summary { margin-left: auto; color: #64748b; font-size: 10px; }
.daily-module .daily-date-label { display: flex; align-items: center; gap: 6.4px; font-size: 10px; }
.daily-module .daily-date-label input { padding: 6.4px 8px; border: 1px solid #d6dfe5; border-radius: 6.4px; }
.daily-module .daily-view-buttons button:disabled { opacity: 1; background: #e9eff2; color: #19313c; cursor: default; }

.daily-module .daily-list { border-top: 1px solid #edf0f4; }
.daily-module .daily-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.daily-module .daily-item:last-child { border-bottom: 0; }
.daily-module .daily-item-main { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.daily-module .daily-item-main input { flex-shrink: 0; accent-color: #235565; }
.daily-module .daily-item-text { min-width: 0; }
.daily-module .daily-item-title { display: block; font-size: 10px; color: #253044; overflow-wrap: anywhere; }
.daily-module .daily-item-meta { display: block; margin-top: 3.2px; color: #64748b; font-size: 8.8px; }
.daily-module .daily-item-completed .daily-item-title { text-decoration: line-through; color: #94a3b8; }
.daily-module .daily-stop-button { border: 0; background: transparent; color: #64748b; cursor: pointer; padding: 4.8px; }

.daily-module .daily-modal-overlay { z-index: 5000; }
.daily-module .daily-modal {
    max-width: 496px;
    max-height: min(90dvh, 640px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.daily-module .daily-create-form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.daily-module .daily-modal-content { min-height: 0; overflow-y: auto; padding: 2px 2px 8px; }
.daily-module .daily-modal-actions { flex-shrink: 0; border-top: 1px solid #e5e7eb; padding-top: 12px; margin-top: 6.4px; }
.daily-module .daily-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.daily-module .daily-modal .form-group { margin-bottom: 12px; }
.daily-module .daily-modal .form-group input,
.daily-module .daily-modal .form-group select { width: 100%; min-height: 32px; padding: 7.2px 8.8px; border: 1px solid #d6dbe3; border-radius: 6.4px; background: #fff; font: inherit; box-sizing: border-box; }
.daily-module .daily-weekdays { margin-bottom: 13px; font-size: 10px; }
.daily-module .daily-weekday-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7.2px; }
.daily-module .daily-weekday-options label,
.daily-module .daily-employee-option { display: inline-flex; align-items: center; gap: 4.8px; font-size: 10px; }
.daily-module .daily-employees { display: flex; flex-direction: column; gap: 8px; max-height: 144px; overflow-y: auto; padding: 8px; border: 1px solid #edf0f4; border-radius: 6.4px; }
.daily-module .daily-no-employees { color: #64748b; font-size: 10px; margin: 0; }
.daily-module .daily-modal .primary-action-button { background: #235565; }
.daily-module .daily-modal .primary-action-button:hover { background: #1c4855; }

@media (max-width: 600px) {
    .daily-module .daily-summary { margin-left: 0; width: 100%; }
    .daily-module .daily-form-grid { grid-template-columns: 1fr; gap: 0; }
    .daily-module .daily-modal { max-height: calc(100dvh - 24px); }
    .daily-module .daily-modal-actions { flex-direction: column-reverse; }
    .daily-module .daily-modal-actions button { width: 100%; }
}

/* Dnevni zadaci: uređivanje i rok */
.daily-module .daily-edit-button { padding: 4.8px 8px; font-size: 10px; white-space: nowrap; }
.daily-module .daily-field-help { display: block; margin-top: 4px; font-size: 8.8px; color: #64748b; }
.daily-module .daily-date-label .flatpickr-input { min-width: 92px; }

/* V3 — jednostavan checkbox i ikonica za zaustavljanje */
.daily-module .daily-item-main input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #b8c3ce;
    border-radius: 4px;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.daily-module .daily-item-main input[type="checkbox"]:checked {
    background: #235565;
    border-color: #235565;
}
.daily-module .daily-item-main input[type="checkbox"]:checked::after {
    content: "";
    width: 7.2px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}
.daily-module .daily-item-main input[type="checkbox"]:focus-visible {
    outline: 2px solid #235565;
    outline-offset: 2.4px;
}
.daily-module .daily-item-main input[type="checkbox"]:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.daily-module .daily-stop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid transparent;
    border-radius: 6.4px;
    color: #778493;
}
.daily-module .daily-stop-button:hover {
    background: #fff1eb;
    border-color: #f6d4c5;
    color: #1c4855;
}

/* V4 — kompaktan tabelarni pregled sa dva nivoa skrola */
.daily-module {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 88px);
    min-height: 272px;
    overflow: hidden;
}
.daily-module .daily-header-panel {
    flex: 0 0 auto;
    min-height: 0 !important;
    margin-bottom: 8px;
    padding: 13px 14px;
}
.daily-module .daily-content-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 2.4px 11px 0;
}
.daily-module .daily-section {
    min-height: 0 !important;
    padding: 11px 13px;
    margin-bottom: 10px;
}
.daily-module .daily-section-heading { margin-bottom: 8px; }
.daily-module .daily-section-heading h3 { margin: 0 0 3.2px; font-size: 12px; }
.daily-module .daily-section-heading p { margin: 0; font-size: 10px; color: #718096; }
.daily-module .daily-table-viewport { overflow-x: auto; }
.daily-module .daily-table-scroll { max-height: 386px; overflow-y: auto; overscroll-behavior: contain; }
.daily-module .daily-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 10px; }
.daily-module .daily-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #eaf0f3;
    color: #34475b;
    text-align: left;
    padding: 8.8px 8px;
    font-weight: 600;
    white-space: nowrap;
}
.daily-module .daily-table td {
    padding: 7.2px 8px;
    height: 34px;
    border-bottom: 1px solid #e5ebf0;
    vertical-align: middle;
    white-space: nowrap;
}
.daily-module .daily-table tbody tr:nth-child(even) { background: #f6f8fa; }
.daily-module .daily-table tbody tr:hover { background: #eef3f6; }
.daily-module .daily-table .daily-name-cell { white-space: normal; min-width: 128px; font-weight: 500; }
.daily-module .daily-table .daily-check-cell { width: 34px; text-align: center; }
.daily-module .daily-table input[type="checkbox"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1.5px solid #aebcc7;
    border-radius: 3.2px;
    background: white;
    cursor: pointer;
    vertical-align: middle;
}
.daily-module .daily-table input[type="checkbox"]:checked { background: #235565; border-color: #235565; }
.daily-module .daily-table input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 6.4px;
    height: 3.2px;
    margin: 2.4px 0 0 2.4px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}
.daily-module .daily-table input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.daily-module .daily-item-completed .daily-name-cell { color: #82909b; text-decoration: line-through; }
.daily-module .daily-subtext { display: block; font-size: 8px; color: #82909b; margin-top: 2.4px; }
.daily-module .daily-status { color: #687985; }
.daily-module .daily-status.is-done { color: #23805b; }
.daily-module .daily-status.is-late { color: #c04439; }
.daily-module .daily-actions { text-align: right; }
.daily-module .daily-actions .daily-edit-button { display: inline-flex; gap: 4px; align-items: center; }
.daily-module .daily-actions .daily-stop-button { vertical-align: middle; }
.daily-module .daily-empty-row { color: #87939e; text-align: center; padding: 14px !important; }
@media (max-width: 700px) {
    .daily-module { height: calc(100dvh - 95px); }
    .daily-module .daily-header-panel { padding: 12px; }
    .daily-module .daily-section { padding: 10px; }
}

.private-module { display: grid; gap: 11px; }
.private-module .private-header { margin-bottom: 0; }
.private-module .private-tabs { display: flex; gap: 6.4px; flex-wrap: wrap; margin-top: 11px; }
.private-module .private-tabs button { border: 1px solid #e2e8f0; background: #fff; border-radius: 6.4px; padding: 7.2px 10px; cursor: pointer; }
.private-module .private-tabs button.active { border-color: #235565; color: #1c4855; background: #fff5ef; }
.private-module .private-columns { display: grid; grid-template-columns: minmax(168px, 240px) minmax(0, 1fr); gap: 11px; align-items: start; }
.private-module .private-team { display: flex; flex-direction: column; width: 100%; text-align: left; gap: 3.2px; padding: 10px; margin-top: 5.6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 7.2px; cursor: pointer; }
.private-module .private-team.selected { border-color: #235565; background: #fff7f1; }
.private-module small { display: block; color: #64748b; font-size: 10px; }
.private-module .private-line { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid #e2e8f0; padding: 10px 0; }
.private-module .private-actions { display: flex; flex-wrap: wrap; gap: 5.6px; align-items: center; }
.private-module .private-actions button, .private-module .private-actions select { padding: 5.6px 7.2px; border-radius: 5.6px; border: 1px solid #cbd5e1; background: white; cursor: pointer; }
.private-module .private-invite { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 11px 0; }
.private-module .private-invite label { display: grid; gap: 4px; flex: 1 1 136px; font-size: 10px; }
.private-module input, .private-module textarea, .private-module select { box-sizing: border-box; max-width: 100%; padding: 7.2px; border: 1px solid #cbd5e1; border-radius: 5.6px; }
.private-module .private-notice { padding: 8px; background: #eff6ff; border-radius: 6.4px; margin: 0; }
.private-module .private-error { background: #fef2f2; color: #991b1b; }
.private-module [hidden] { display: none !important; }
@media (max-width: 740px) { .private-module .private-columns { grid-template-columns: 1fr; } .private-module .private-line { align-items: flex-start; flex-direction: column; } }

/* Privatne aktivnosti – faza 2 */
.private-activity-toolbar{display:flex;gap:13px;flex-wrap:wrap;margin-top:11px;}.private-activity-toolbar label,.private-activity-fields>label{display:flex;flex-direction:column;gap:4.8px;font-size:10px;}.private-activity-toolbar select,.private-activity-toolbar input,.private-activity-fields input,.private-activity-fields select,.private-activity-fields textarea{padding:7.2px;border:1px solid #d7dce3;border-radius:5.6px;background:#fff;color:#20242b;min-width:0;}.private-activity{padding:10px 0;border-bottom:1px solid #e7e9ec;}.private-activity:last-child{border-bottom:0;}.private-activity-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}.private-activity-top label{display:flex;align-items:center;gap:6.4px;}.private-activity small{display:block;margin:4.8px 0;color:#64748b;}.private-activity.is-complete strong{text-decoration:line-through;color:#64748b;}.private-check-items{display:grid;gap:6.4px;padding:8px 0 3.2px 20px;}.private-check-items label{display:flex;align-items:center;gap:6.4px;}.private-activity-dialog{max-width:448px;width:calc(100% - 19px);}.private-activity-fields{display:grid;gap:11px;padding:14px;}.private-weekdays{display:flex;flex-wrap:wrap;gap:8px;margin-top:6.4px;}.private-weekdays label{display:flex;align-items:center;gap:3.2px;}.private-activity-overlay{z-index:1000;}

/* Faza 3 — kompaktniji pregled, po uzoru na Dnevne zadatke */
.private-tabs { display:flex; gap:6.4px; flex-wrap:wrap; }
.private-tabs button { flex:1 1 120px; min-height:34px; }
.private-section { margin-top:10px; }
.private-section h3 { margin:0 0 8px; font-size:12px; }
.private-table-scroll { overflow:auto; max-height:352px; }
.private-activities-table { width:100%; border-collapse:collapse; font-size:10px; white-space:nowrap; }
.private-activities-table th { position:sticky; top:0; background:var(--card-bg,#fff); z-index:1; text-align:left; font-weight:600; }
.private-activities-table td,.private-activities-table th { padding:7.2px 8px; border-bottom:1px solid #e8e9ed; vertical-align:middle; }
.private-activities-table .private-name-col { min-width:136px; white-space:normal; }
.private-activities-table .private-check-col { width:27px; }
.private-activities-table .secondary-button { padding:4px 6.4px; font-size:10px; }
.private-expand { display:block; padding:2.4px 0; border:0; background:none; color:#235565; font-size:8.8px; cursor:pointer; }
.private-row-done .private-name-col strong { text-decoration:line-through; opacity:.65; }
.private-items-row[hidden] { display:none; }
.private-items-row td { background:#fafafa; }
.private-check-items { display:grid; gap:4.8px; padding:3.2px 6.4px; }
.private-check-items label { display:flex; align-items:center; gap:8px; }
.private-check-items label span { flex:1; }
.private-check-items small { color:#6b7280; }
.private-history { padding:13px; max-height:55vh; overflow:auto; }
.private-history>div { padding:8px 0; border-bottom:1px solid #eee; }
.private-history small { display:block; color:#6b7280; margin-top:3.2px; }
@media(max-width:700px) { .private-activities-table { font-size:12px; } .private-table-scroll { max-height:360px; } }

/* Faza 4: jedno kompaktno zaglavlje kao kod Dnevnih zadataka */
.private-module { gap: 10px; }
.private-module .private-header { padding: 13px 14px; }
.private-module .private-header .dashboard-panel-header { align-items: center; gap: 10px; }
.private-module .private-header-actions { display: flex; align-items: center; gap: 6.4px; flex-wrap: wrap; }
.private-module .private-header-actions button { white-space: nowrap; }
.private-module .private-tabs { margin-top: 8px; gap: 6.4px; }
.private-module .private-tabs button { flex: 0 1 auto; min-height: 30px; padding: 5.6px 11px; font-size: 10px; font-weight: 600; }
.private-module .private-activity-toolbar { display: flex; align-items: end; gap: 10px; margin-top: 8px; }
.private-module .private-activity-toolbar label { display: flex; flex-direction: row; align-items: center; gap: 5.6px; font-size: 10px; }
.private-module .private-activity-toolbar select { min-width: 120px; }
.private-module .private-activity-toolbar input[type=date] { width: 120px; }
.private-module .private-activity-summary { margin-left: auto; font-size: 10px; color: #64748b; }
.private-module .private-section { margin-top: 0; padding: 11px 14px; }
.private-module .private-section h3 { margin: 0 0 8px; }
.private-module .private-activities-table th { background: #eaf0f4; }
.private-module .private-expand { display: inline-flex; align-items: center; margin-top: 4px; padding: 4px 8px; background: #fff6f0; border: 1px solid #235565; border-radius: 4.8px; color: #1c4855; font-size: 10px; font-weight: 600; }
.private-module .private-expand:hover { background: #ffe8db; }
.private-module .private-expand:focus-visible { outline: 2px solid #235565; outline-offset: 2px; }
.private-module .private-check-items { padding: 6.4px 10px; }
@media(max-width: 700px) {
 .private-module .private-header { padding: 12px; }
 .private-module .private-tabs button { flex: 1 1 auto; padding: 7px 9px; }
 .private-module .private-activity-toolbar { flex-wrap: wrap; }
 .private-module .private-activity-summary { margin-left: 0; width: 100%; }
 .private-module .private-header-actions { justify-content: flex-start; }
}

/* =====================================================
   PRIVATNO — završno kompaktno podešavanje
   Ograničeno na Privatno, bez uticaja na ostale module
   ===================================================== */
#pageContent .private-module .dashboard-panel {
    min-height: 0;
}
#pageContent .private-module .private-header {
    min-height: 0;
    padding: 8px 11px;
}
.private-module .private-header .dashboard-panel-header {
    margin-bottom: 3.2px;
    gap: 6.4px;
    flex-wrap: wrap;
}
.private-module .private-header .dashboard-panel-header h3 {
    margin: 0;
}
.private-module .private-header .dashboard-panel-header p {
    margin: 2px 0 0;
}
.private-module .private-tabs {
    margin-top: 4.8px;
    gap: 4.8px;
}
.private-module .private-tabs button {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 10px;
}
.private-module .private-activity-toolbar {
    margin-top: 4.8px;
    gap: 6.4px;
}
.private-module .private-activity-toolbar select,
.private-module .private-activity-toolbar input {
    padding: 4.8px 6.4px;
}
.private-module .private-section {
    padding: 10px 11px;
}
@media (max-width: 700px) {
    #pageContent .private-module .private-header { padding: 10px; }
    .private-module .private-tabs button { min-height: 32px; }
}

/* PRIVATNO V5.5 – kompaktan raspored, samo ovaj modul */
#pageContent.private-module { display:flex; flex-direction:column; gap:8px; align-items:stretch; }
#pageContent.private-module .dashboard-panel { min-height:0; }
#pageContent.private-module .private-compact-header { padding:10px 13px; }
.private-module .private-compact-main { display:flex; align-items:center; gap:6.4px; flex-wrap:wrap; width:100%; }
.private-module .private-compact-main > select { min-width:116px; max-width:176px; height:27px; padding:4px 8px; border:1px solid #cbd5e1; border-radius:5.6px; background:#fff; }
.private-module .private-compact-main .private-tabs { display:flex; align-items:center; gap:5.6px; margin:0; flex-wrap:wrap; }
.private-module .private-compact-main .private-tabs button { min-height:27px; padding:4px 8.8px; font-size:10px; flex:0 0 auto; }
.private-module .private-compact-right { display:flex; flex-direction:column; align-items:flex-end; gap:4px; margin-left:auto; }
.private-module .private-compact-right .private-header-actions { display:flex; gap:6.4px; justify-content:flex-end; }
.private-module .private-compact-right .private-header-actions button { padding:5.6px 10px; min-height:27px; }
.private-module .private-compact-right .private-activity-summary { margin:0; font-size:8.8px; line-height:1.2; white-space:nowrap; }
.private-module #privateContent { min-width:0; }
.private-module .private-compact-activities { padding:10px 13px; min-height:0; }
.private-module .private-compact-activities .private-view-tabs { margin-bottom:8px !important; }
.private-module .private-compact-activities .private-view-tabs button { min-height:26px; padding:4px 10px; font-size:10px; }
.private-module .private-compact-activities .private-section { padding:0; border:0; box-shadow:none; margin:0; min-height:0; background:transparent; }
.private-module .private-compact-activities .private-table-scroll { margin:0; }
.private-module .private-compact-activities .private-activities-table td { padding-top:7.2px; padding-bottom:7.2px; }
@media(max-width:850px){
 .private-module .private-compact-right { margin-left:0; align-items:flex-start; }
 .private-module .private-compact-main { align-items:flex-start; }
 .private-module .private-compact-main .private-tabs { flex:1; }
}
@media(max-width:560px){
 .private-module .private-compact-main > select { flex:1; max-width:none; }
 .private-module .private-compact-right { width:100%; }
 .private-module .private-compact-right .private-header-actions { width:100%; justify-content:flex-start; }
 .private-module .private-compact-header,.private-module .private-compact-activities { padding:10px; }
}

/* Privatno V5.6 — jasna akcija umjesto checkboxa za cijelu aktivnost */
.private-activities-table .private-check-col { width: 80px; white-space: nowrap; }
.private-activities-table .private-complete-button { cursor: pointer; border: 1px solid #235565; border-radius: 5.6px; background: #fff7f2; color: #1c4855; font: inherit; font-size: 10px; font-weight: 600; padding: 4.8px 8px; white-space: nowrap; }
.private-activities-table .private-complete-button:hover { background: #ffe9dc; }
.private-activities-table .private-complete-button.is-completed { border-color: #cbd5e1; background: #f8fafc; color: #475569; }
.private-activities-table .private-complete-button:disabled { opacity: .55; cursor: wait; }


/* Početna – četiri kompaktna panela */
.ad-home-grid { align-items: stretch; }
.ad-home-grid .ad-home-panel { min-height: 0; display: flex; flex-direction: column; }
.ad-home-grid .ad-home-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.ad-home-grid .ad-home-head h3 { margin:0; }
.ad-home-grid .ad-home-head p { margin:2.4px 0 0; }
.ad-home-grid .ad-home-new { white-space:nowrap; padding:5.6px 10px; font-size:10px; }
.ad-home-grid .ad-home-more { align-self:flex-end; margin-top:auto; padding-top:10px; }
.ad-home-list-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7.2px 2px; border-bottom:1px solid #e8edf1; }
.ad-home-list-row strong { display:block; font-size:10px; }
.ad-home-list-row small { display:block; margin-top:2.4px; color:#7a8699; font-size:8.8px; }
.ad-home-list-row>span { color:#6c7788; font-size:8.8px; white-space:nowrap; }
.ad-home-welcome { min-height:0; }
@media (max-width:900px) { .ad-home-grid { grid-template-columns:1fr; } }


/* POČETNA — dva panela iznad, Moji zadaci preko cijele širine */
.dashboard-grid.ad-home-grid.ad-home-three {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.dashboard-grid.ad-home-grid.ad-home-three > .ad-home-panel {
    grid-column: span 1;
    min-width: 0;
    width: 100%;
}

.dashboard-grid.ad-home-grid.ad-home-three > .ad-home-panel:last-child {
    grid-column: 1 / -1;
}

.dashboard-grid.ad-home-grid.ad-home-three .ad-classic-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 800px) {
    .dashboard-grid.ad-home-grid.ad-home-three {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-grid.ad-home-grid.ad-home-three > .ad-home-panel:last-child {
        grid-column: auto;
    }
}


/* Novi tiket — modal iznad postojeće stranice */
.ticket-new-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.ticket-new-modal {
    width: min(100%, 800px);
    max-height: min(92vh, 800px);
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 19px 56px rgba(0,0,0,.24);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ticket-new-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.ticket-new-modal-content {
    padding: 16px;
    overflow-y: auto;
    min-height: 0;
}
.ticket-new-modal-content .ticket-toolbar { display: none; }
.ticket-new-modal-content .ticket-form-page { max-width: none; margin: 0; padding: 0; }
@media (max-width: 650px) {
    .ticket-new-overlay { padding: 8px; }
    .ticket-new-modal { max-height: 96vh; border-radius: 10px; }
    .ticket-new-modal-content { padding: 12px; }
    .ticket-new-modal-content .ticket-form-grid { grid-template-columns: 1fr !important; }
}

/* Administracija — sklopivi podmeni */
.sidebar-menu-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sidebar-menu-chevron { margin-left: auto; transition: transform .2s ease; }
.sidebar-menu-toggle.expanded .sidebar-menu-chevron { transform: rotate(180deg); }
.sidebar-submenu { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.13); margin-left: 14px; }
.sidebar-submenu[hidden] { display: none !important; }
.sidebar-submenu .sidebar-link { padding: 7.2px 8px; font-size: 10px; }
.sidebar-submenu .sidebar-icon { font-size: 12px; width: 14px; }
@media (max-width: 900px) {
    .sidebar-submenu { margin-left: 0; padding-left: 0; border-left: 0; }
    .sidebar-submenu .sidebar-link { justify-content: center; }
    .sidebar-menu-chevron { display: none; }
}

/* Dnevni zadaci: jedan panel sa karticama kao u Privatno */
.daily-unified-panel { width: 100%; min-width: 0; }
.daily-activity-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6.4px; margin-bottom: 10px; }
.daily-activity-tab.is-active { border-color: #235565; color: #235565; font-weight: 700; background: #eef5f6; }
.daily-unified-panel .daily-table-viewport { width: 100%; overflow-x: auto; }

/* Prenesene aktivnosti su u istoj tabeli, ispod aktivnih. */
.daily-unified-panel .daily-group-row td {
    padding: 8.8px 11px;
    background: #f2f5f7;
    color: #243746;
    border-top: 1px solid #dbe3e8;
    border-bottom: 1px solid #dbe3e8;
}
.daily-unified-panel .daily-group-row strong { font-weight: 700; }
.daily-unified-panel .daily-group-row small { display: block; margin-top: 2.4px; color: #697b87; }
.daily-unified-panel .daily-group-carried td {
    background: #eaf3f5;
    border-top: 2px solid #235565;
    border-bottom: 1px solid #c9dce0;
    color: #1c4855;
}
.daily-unified-panel .daily-group-carried small { color: #54707a; }


/* =====================================================
   ANASOF — TAMNA / PETROLEJ-ZELENA PALETA
   Akcenti bez narandžaste; crvena ostaje samo za greške.
   ===================================================== */
:root {
    --anasof-accent: #235565;
    --anasof-accent-hover: #193e49;
    --anasof-accent-soft: #eaf3f5;
    --anasof-accent-border: #bfd4da;
    --anasof-dark: #1d1f23;
}
.daily-activity-tab.is-active {
    border-color: var(--anasof-accent);
    color: var(--anasof-accent);
    background: var(--anasof-accent-soft);
}
.daily-unified-panel .daily-group-carried td {
    background: var(--anasof-accent-soft);
    border-top: 2px solid var(--anasof-accent);
    border-bottom: 1px solid var(--anasof-accent-border);
    color: var(--anasof-accent-hover);
}
.daily-unified-panel .daily-group-carried small { color: #54707a; }


/* =========================================================
   ANASOF TASK — BLUE BUSINESS DASHBOARD / 10.11.2026
   Vizuelne izmjene bez mijenjanja JS funkcionalnosti.
   ========================================================= */
:root {
  --anasof-sidebar:#10477e;
  --anasof-header:#1764a7;
  --anasof-accent:#2788e4;
  --anasof-accent-hover:#176fc3;
  --anasof-accent-soft:#eaf4ff;
  --anasof-accent-border:#c9e1fa;
  --anasof-bg:#f2f6fe;
  --anasof-surface:#fff;
  --anasof-border:#dce8f5;
  --anasof-text:#18365a;
  --anasof-muted:#71849b;
}
body.app-page {background:var(--anasof-bg);color:var(--anasof-text);}
.sidebar {background:linear-gradient(180deg,#14548e 0%,#103f73 58%,#0d315d 100%);color:#f0f6ff;}
.sidebar-logo,.brand-logo {background:#2788e4;color:white;}
.sidebar-brand-text span {color:#bbd5ec;}
.sidebar-link {color:#d9e9fa;border-radius:8px;}
.sidebar-link:hover {background:rgba(255,255,255,.11);color:white;}
.sidebar-link.active {background:rgba(73,160,245,.25);color:#fff;box-shadow:inset 2.4px 0 0 #76baff;}
.sidebar-company {background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.16);}
.sidebar-user-avatar {background:#3475ad;}
.app-header {background:#fff;border-bottom:1px solid var(--anasof-border);min-height:53px;padding:10px 19px;}
.app-header h1 {color:#15375d;font-size:16px;}
.app-header p {color:var(--anasof-muted);font-size:10px;}
.app-content {padding:18px 21px;}
#dashboardContent .dashboard-welcome {background:transparent;border:0;box-shadow:none;padding:3.2px 0 14px;margin:0;gap:13px;}
#dashboardContent .dashboard-label {display:none;}
#dashboardContent .dashboard-welcome h2 {font-size:20px;line-height:1.2;color:#12365c;margin:0 0 5.6px;font-weight:750;}
#dashboardContent .dashboard-welcome p {color:#7a8ba0;font-size:10px;}
.primary-button,.primary-action-button {background:#2788e4;color:#fff;border-color:#2788e4;border-radius:8px;}
.primary-button:hover,.primary-action-button:hover {background:#176fc3;border-color:#176fc3;}
#dashboardContent .dashboard-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px;}
#dashboardContent .dashboard-stat-card {border:1px solid #dfebf8;border-radius:13px;padding:16px 17px;box-shadow:0 4px 13px rgba(28,68,117,.035);min-width:0;}
#dashboardContent .dashboard-stat-card:nth-child(1) {background:linear-gradient(125deg,#e8f3ff,#f5faff);}
#dashboardContent .dashboard-stat-card:nth-child(2) {background:linear-gradient(125deg,#fef2e9,#fffaf5);}
#dashboardContent .dashboard-stat-card:nth-child(3) {background:linear-gradient(125deg,#eaf7f4,#f7fcfb);}
#dashboardContent .dashboard-stat-card:nth-child(4) {background:linear-gradient(125deg,#f0efff,#faf9ff);}
#dashboardContent .dashboard-stat-header {margin-bottom:11px;color:#506a86;}
#dashboardContent .dashboard-stat-icon {opacity:.65;}
#dashboardContent .dashboard-stat-card > strong {font-size:26px;color:#173a63;line-height:1.2;}
#dashboardContent .dashboard-stat-card small {color:#7c8da1;}
#dashboardContent .dashboard-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch;}
#dashboardContent .dashboard-grid > .dashboard-panel {grid-column:auto;min-width:0;}
#dashboardContent .dashboard-grid > .dashboard-panel:last-child {grid-column:1/-1;}
#dashboardContent .dashboard-panel {background:#fff;border:1px solid var(--anasof-border);border-radius:13px;padding:16px 18px;box-shadow:0 3.2px 14px rgba(27,66,111,.035);}
#dashboardContent .dashboard-panel-header h3 {color:#183b63;font-size:13px;}
#dashboardContent .dashboard-panel-header p {color:#8493a6;}
.dashboard-welcome,.dashboard-stat-card,.dashboard-panel,.dashboard-section,.table-card,.info-panel {border-color:var(--anasof-border);}
.ticket-filter.active {background:#2788e4;border-color:#2788e4;color:#fff;}
.ticket-open-btn,.text-button,.ad-ticket-number,.register-login a {color:#2178c8;}
.admin-table th,.ticket-table th {background:#f0f6fd;color:#526c87;}
.admin-table tbody tr:hover,.ticket-table tbody tr:hover,.ad-classic-table tbody tr:hover {background:#edf6ff;}
.ticket-field input:focus,.ticket-field select:focus,.ticket-field textarea:focus,.form-group input:focus {border-color:#2788e4;box-shadow:0 0 0 2.4px rgba(39,136,228,.12);}
.ticket-history-dot {background:#2788e4;}
.ticket-history-arrow,.ticket-comments-arrow {color:#2788e4;}
.sidebar-link:focus-visible,button:focus-visible,a:focus-visible {outline-color:#2788e4;}
@media(max-width:1050px) {#dashboardContent .dashboard-stats {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px) {.app-content {padding:16px 13px;}.app-header {padding:11px 15px;}#dashboardContent .dashboard-welcome {align-items:flex-start;flex-wrap:wrap;}#dashboardContent .dashboard-welcome h2 {font-size:21px;}#dashboardContent .dashboard-grid {grid-template-columns:1fr;}#dashboardContent .dashboard-grid > .dashboard-panel {grid-column:1/-1;}#dashboardContent .dashboard-panel {padding:16px;}}
@media(max-width:420px) {#dashboardContent .dashboard-stats {gap:9px;}#dashboardContent .dashboard-stat-card {padding:14px 12px;}#dashboardContent .dashboard-stat-card > strong {font-size:26px;}}


/* =====================================================
   ANASOF TASK — ZAVRŠNO USKLAĐIVANJE
   Kompanija, naslovi panela i kompaktan raspored
   ===================================================== */
.sidebar-company {margin:8px 11px 14px;padding:8.8px 10px;border:1px solid rgba(255,255,255,.17);border-radius:10px;background:rgba(255,255,255,.065);}
.sidebar-company-label {display:block;margin-bottom:6.4px;font-size:8.8px;font-weight:600;letter-spacing:.2px;opacity:.72;}
.sidebar-company-selector {display:flex;align-items:center;gap:6.4px;min-height:21px;}
.sidebar-company-selector strong,#sidebarCompanyName {display:block;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;line-height:1.4;color:#fff;}
.company-switch-btn {flex:0 0 22px;width:22px;height:22px;padding:0;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.2);border-radius:5.6px;background:rgba(255,255,255,.08);color:#fff;font-size:14px;cursor:pointer;}
.company-switch-btn:hover {background:rgba(255,255,255,.17);}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;align-items:stretch;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel {grid-column:auto;min-width:0;width:100%;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {grid-column:1/-1;}
#dashboardContent .dashboard-panel {padding:14px 15px;}
#dashboardContent .dashboard-panel-header,#dashboardContent .ad-home-head {padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e5edf6;}
#dashboardContent .dashboard-panel-header h3,#dashboardContent .ad-home-head h3 {font-size:13px;font-weight:700;line-height:1.35;}
#dashboardContent .dashboard-panel-header p,#dashboardContent .ad-home-head p {font-size:8.8px;line-height:1.4;}
#dashboardContent .dashboard-stats {gap:10px;margin-bottom:12px;}
#dashboardContent .dashboard-stat-card {padding:12px 14px;}
#dashboardContent .dashboard-stat-header {margin-bottom:7.2px;}
#dashboardContent .dashboard-welcome {padding-bottom:11px;}
@media(max-width:800px) {#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {grid-template-columns:1fr;}#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {grid-column:auto;}}

/* =====================================================
   ANASOF TASK — NOVI KOMPAKTNI DASHBOARD (ZELENA TEMA)
   Samo pocetna; ostali moduli zadrzavaju postojeci CSS.
   ===================================================== */
:root {--ad-green:#087553;--ad-green-dark:#083e31;--ad-bg:#edf7f3;--ad-border:#dcebe5;}
body.app-page {background:var(--ad-bg);}
.sidebar {background:linear-gradient(180deg,#087b56 0%,#086247 54%,#073b2f 100%);color:#fff;}
.sidebar-logo {background:#fff;color:#064d3b;}
.sidebar-link.active {background:rgba(255,255,255,.23);box-shadow:none;}
.sidebar-link:hover {background:rgba(255,255,255,.14);}
.sidebar-company {margin:11px 10px 16px;padding:0;border:0;background:none;box-shadow:none;}
.sidebar-company-label {margin:0 0 4.8px 7.2px;font-size:10px;letter-spacing:0;color:#c3e4d9;opacity:1;}
.sidebar-company-selector {min-height:34px;padding:0 10px;gap:7.2px;border:1px solid rgba(255,255,255,.22);border-radius:18px;background:rgba(255,255,255,.07);}
.sidebar-company-selector strong,#sidebarCompanyName {font-size:10px;font-weight:650;color:#fff;}
.company-switch-btn {width:19px;height:22px;flex:0 0 19px;color:#fff;}
.app-content {background:var(--ad-bg);}
/* Header is integrated into the welcome panel, but remains the original notification DOM */
.app-main:has(#dashboardContent:not([hidden])) {position:relative;}
.app-main:has(#dashboardContent:not([hidden])) > .app-header {position:absolute;top:14px;right:32px;z-index:20;width:auto;height:auto;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;}
.app-main:has(#dashboardContent:not([hidden])) > .app-header > div:first-child {display:none;}
.app-header-actions {display:flex;align-items:center;gap:8px;}
.ad-header-user-btn {display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#fff;color:#104a3d;cursor:pointer;box-shadow:0 2px 8px rgba(5,65,48,.06);}
.ad-header-user-btn:hover {background:#def4e9;}
.app-main:not(:has(#dashboardContent:not([hidden]))) .ad-header-user-btn {display:none;}
#dashboardContent .ad-welcome-compact {display:flex;align-items:center;min-height:86px;margin:0 0 16px;padding:18px 100px 18px 19px;border:1px solid #dcefe7;border-radius:18px;background:linear-gradient(100deg,#e3f4ec,#eef8f3);box-shadow:none;}
#dashboardContent .ad-welcome-compact h2 {margin:0 0 4px;font-size:20px;line-height:1.2;color:#122e29;}
#dashboardContent .ad-welcome-compact p {margin:0;color:#57766c;font-size:10px;}
#dashboardContent .dashboard-stats {gap:10px;margin:0 0 14px;}
#dashboardContent .dashboard-stat-card {min-height:72px;padding:12px 14px;border:5.6px solid #fff;border-radius:17px;box-shadow:0 4px 12px rgba(17,77,59,.045);}
#dashboardContent .dashboard-stat-card:nth-child(1) {background:#e5f0ff;}
#dashboardContent .dashboard-stat-card:nth-child(2) {background:#fff0e4;}
#dashboardContent .dashboard-stat-card:nth-child(3) {background:#e2f4e9;}
#dashboardContent .dashboard-stat-card:nth-child(4) {background:#f0e9fc;}
#dashboardContent .dashboard-stat-card > strong {font-size:22px;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {gap:12px;}
#dashboardContent .dashboard-panel {padding:15px 16px;border:1px solid #e4eee9;border-radius:18px;background:#fff;box-shadow:0 4px 13px rgba(13,69,50,.045);}
#dashboardContent .dashboard-panel-header.ad-home-head {padding-bottom:8.8px;margin-bottom:10px;border-bottom:1px solid #b4daca;}
#dashboardContent .dashboard-panel-header h3 {font-size:14px;color:#193c32;}
#dashboardContent .ad-home-new {background:#087553;border-color:#087553;border-radius:16px;}
#dashboardContent .ad-home-new:hover {background:#065a41;}
#dashboardContent .ad-home-more {color:#087553;}
#dashboardContent .ad-classic-table tbody tr:nth-child(even) {background:#f3f8f6;}
#dashboardContent .ad-classic-table tbody tr:hover {background:#e7f5ed;}
#dashboardContent .ad-home-list-row:nth-child(even) {background:#f4f9f6;}
#dashboardContent .ad-home-list-row:hover {background:#e7f5ed;}
@media(max-width:800px) {.app-main:has(#dashboardContent:not([hidden])) > .app-header {top:19px;right:24px;}#dashboardContent .ad-welcome-compact {padding-right:120px;}}
@media(max-width:560px) {.app-main:has(#dashboardContent:not([hidden])) > .app-header {top:14px;right:22px;}#dashboardContent .ad-welcome-compact {min-height:106px;padding:17px 105px 17px 16px;}#dashboardContent .ad-welcome-compact h2 {font-size:19px;}.ad-header-user-btn,.header-button {width:35px;height:35px;}}

/* ZAOBLJENI LIJEVI MENI — odmaknut od ivica */
@media (min-width: 701px) {
    .sidebar {top:11px;bottom:11px;left:11px;width:185px;height:calc(100dvh - 22px);border-radius:18px;overflow-y:auto;overflow-x:hidden;box-shadow:0 6.4px 19px rgba(4,54,40,.10);}
    .app-main {width:calc(100% - 207px);margin-left:207px;}
}
@media (max-width:700px) {
    .sidebar {top:10px;bottom:10px;left:8px;width:62px;height:calc(100dvh - 20px);border-radius:17px;overflow-y:auto;overflow-x:hidden;}
    .app-main {width:calc(100% - 78px);margin-left:78px;}
}

/* POCETNA: skrola samo sadrzaj ispod KPI kartica */
@media(min-width:801px) {
    body.app-page:has(#dashboardContent:not([hidden])) {height:100dvh;overflow:hidden;}
    body.app-page:has(#dashboardContent:not([hidden])) .app-main {height:100dvh;min-height:0;overflow:hidden;}
    body.app-page:has(#dashboardContent:not([hidden])) .app-content {height:100%;min-height:0;overflow:hidden;}
    #dashboardContent:not([hidden]) {height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
    #dashboardContent .ad-welcome-compact,#dashboardContent .dashboard-stats {flex-shrink:0;}
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:1px 4px 14px 1px;scrollbar-width:thin;scrollbar-color:#a4c9bb transparent;}
}
#dashboardContent .ad-home-list-row[data-dashboard-activity] {cursor:pointer;transition:background .15s;}
#dashboardContent .ad-home-list-row[data-dashboard-activity]:focus-visible {outline:2px solid #168464;outline-offset:-2px;}
.ad-activity-overlay {position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(5,30,24,.5);}
.ad-activity-dialog {width:min(100%,416px);max-height:90dvh;overflow:auto;padding:19px;border-radius:16px;background:#fff;color:#183b32;box-shadow:0 19px 56px rgba(0,0,0,.22);}
.ad-activity-dialog-header {display:flex;justify-content:space-between;gap:14px;align-items:start;padding-bottom:11px;border-bottom:1px solid #d9eae2;}
.ad-activity-dialog-header small {color:#39836b;font-size:10px;}
.ad-activity-dialog-header h2 {margin:4px 0 0;font-size:18px;line-height:1.3;}
.ad-activity-close {flex:none;width:27px;height:27px;border:0;border-radius:50%;background:#eef5f1;color:#174d3d;font-size:20px;cursor:pointer;}
.ad-activity-fields {display:grid;gap:10px;padding:14px 0;}
.ad-activity-fields>div {display:grid;grid-template-columns:88px 1fr;gap:10px;font-size:10px;}
.ad-activity-fields span {color:#698077;}.ad-activity-fields strong {font-weight:600;overflow-wrap:anywhere;}
.ad-activity-checklist {border-top:1px solid #e1eee8;padding-top:10px;font-size:10px;}.ad-activity-checklist h3 {margin:0 0 7.2px;font-size:11px;}.ad-activity-checklist p {margin:4.8px 0;}
.ad-activity-dialog footer {display:flex;justify-content:flex-end;gap:8px;padding-top:12px;border-top:1px solid #e1eee8;}
.ad-activity-dialog footer button {padding:8px 12px;border:0;border-radius:16px;cursor:pointer;font-weight:600;}
.ad-activity-cancel {background:#edf4f0;color:#1b4e3d;}.ad-activity-open {background:#087553;color:#fff;}

/* ISPRAVKA: boja pozdravnog panela ne zavisi od drugih dashboard stilova */
#dashboardContent .dashboard-welcome.ad-welcome-compact {background:linear-gradient(110deg,#116b53,#0e4c3d) !important;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 4.8px 14px rgba(10,65,49,.10);}
#dashboardContent .dashboard-welcome.ad-welcome-compact h2 {color:#fff !important;}
#dashboardContent .dashboard-welcome.ad-welcome-compact p,#dashboardContent .dashboard-welcome.ad-welcome-compact .dashboard-label {color:#d8eee5 !important;}

/* POCETNA — KOMPAKTNI KPI I VISE PROSTORA ZA SADRZAJ (10.11.2026) */
/* Ne mijenjati postojecu zelenu boju pozdravnog panela. */
@media(min-width:801px) {
    .app-main:has(#dashboardContent:not([hidden])) > .app-header {top:38px;right:34px;}
    #dashboardContent .dashboard-welcome.ad-welcome-compact {min-height:80px;margin-bottom:10px;padding-top:13px;padding-bottom:13px;}
    #dashboardContent .dashboard-stats {gap:8.8px;margin-bottom:10px;}
    #dashboardContent .dashboard-stat-card {min-height:61px;padding:7.2px 12px;border-width:4px;border-radius:14px;}
    #dashboardContent .dashboard-stat-header {margin-bottom:2.4px;}
    #dashboardContent .dashboard-stat-card > strong {font-size:19px;line-height:1.1;}
    #dashboardContent .dashboard-stat-card small {font-size:8px;}
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {gap:10px;grid-auto-rows:auto;}
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel {min-height:208px;}
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {min-height:272px;}
    #dashboardContent .dashboard-panel {padding:13px 15px;}
}
/* Obje ikonice u istom redu i centrirane po visini pozdrava. */
.app-main:has(#dashboardContent:not([hidden])) > .app-header .app-header-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;}
.app-main:has(#dashboardContent:not([hidden])) > .app-header .notification-wrapper {display:flex;align-items:center;}
.app-main:has(#dashboardContent:not([hidden])) > .app-header .header-button,
.app-main:has(#dashboardContent:not([hidden])) > .app-header .ad-header-user-btn {display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;margin:0;border-radius:50%;line-height:1;}
@media(max-width:800px) {
    .app-main:has(#dashboardContent:not([hidden])) > .app-header {top:43px;right:28px;}
    #dashboardContent .dashboard-welcome.ad-welcome-compact {margin-bottom:12px;}
    #dashboardContent .dashboard-stats {margin-bottom:12px;}
    #dashboardContent .dashboard-stat-card {min-height:76px;padding:10px 12px;border-width:5px;}
    #dashboardContent .dashboard-stat-header {margin-bottom:4px;}
}
@media(max-width:560px) {
    .app-main:has(#dashboardContent:not([hidden])) > .app-header {top:41px;right:22px;}
    .app-main:has(#dashboardContent:not([hidden])) > .app-header .header-button,
    .app-main:has(#dashboardContent:not([hidden])) > .app-header .ad-header-user-btn {width:34px;height:34px;min-width:34px;min-height:34px;}
}


/* ANASOF TASK — PLAVI IDENTITET, VALOVI I KOMPAKTNI DASHBOARD */
:root {--at-blue:#2383e4;--at-ink:#102c60;--at-line:#d9e5f8;--at-bg:#eef4ff;}
body,.app-main {background:#edf4ff !important;}
.sidebar {background:linear-gradient(170deg,#174e86 0%,#114a86 48%,#0c3769 100%) !important;box-shadow:6.4px 0 24px rgba(30,87,162,.12) !important;position:relative;isolation:isolate;overflow:hidden;}
.sidebar::before {content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 900' preserveAspectRatio='none'%3E%3Cpath d='M0 735 C80 625 130 685 260 530 L260 900 L0 900Z' fill='%232a8ae5' fill-opacity='.20'/%3E%3Cpath d='M0 850 C110 695 170 750 260 635 L260 900 L0 900Z' fill='%23092352' fill-opacity='.17'/%3E%3C/svg%3E") center/100% 100% no-repeat;}
.sidebar .sidebar-link.active,.sidebar .sidebar-link:hover {background:#2686df !important;color:white !important;}
#dashboardContent {color:var(--at-ink);}
#dashboardContent .dashboard-welcome.ad-welcome-compact {position:relative;isolation:isolate;overflow:hidden;background:transparent !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;padding:4px 8px 8.8px !important;min-height:72px !important;margin-bottom:6.4px !important;}
#dashboardContent .dashboard-welcome.ad-welcome-compact::before {content:"";position:absolute;z-index:-1;inset:-12px -16px -9.6px 26%;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1100 170' preserveAspectRatio='none'%3E%3Cpath d='M0 170 C160 135 220 20 370 70 C530 130 585 150 690 30 C815 -80 940 55 1100 0 L1100 170Z' fill='%23dce9ff' fill-opacity='.90'/%3E%3C/svg%3E") center/100% 100% no-repeat;}
#dashboardContent .ad-welcome-date {font-size:10px;color:#31578e;font-weight:500;margin-bottom:2.4px;}
#dashboardContent .dashboard-welcome.ad-welcome-compact h2 {color:#0c2859 !important;font-size:22px !important;margin:0 0 2px !important;}
#dashboardContent .dashboard-welcome.ad-welcome-compact p {color:#31578e !important;font-size:10px !important;margin:0 !important;}
.app-main:has(#dashboardContent:not([hidden])) > .app-header {top:22px !important;right:28px !important;}
#dashboardContent .dashboard-stats {gap:10px !important;margin-bottom:11px !important;}
#dashboardContent .dashboard-stat-card {position:relative;isolation:isolate;overflow:hidden;background:rgba(255,255,255,.83) !important;border:1px solid #d7e5fc !important;border-radius:13px !important;box-shadow:0 3.2px 10px rgba(37,91,165,.09) !important;min-height:73px !important;padding:10px 12px 8.8px 64px !important;}
#dashboardContent .dashboard-stat-card::after {content:"";position:absolute;z-index:-1;pointer-events:none;inset:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 120' preserveAspectRatio='none'%3E%3Cpath d='M100 120 C175 85 200 112 250 66 C295 24 315 80 350 64 L350 120Z' fill='%239dc6fa' fill-opacity='.27'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;}
#dashboardContent .dashboard-stat-card:nth-child(2)::after {filter:hue-rotate(35deg);}
#dashboardContent .dashboard-stat-card:nth-child(3)::after {filter:hue-rotate(165deg);}
#dashboardContent .dashboard-stat-card:nth-child(4)::after {filter:hue-rotate(90deg);}
#dashboardContent .dashboard-stat-header {display:block;margin:0 !important;}
#dashboardContent .dashboard-stat-header > span:first-child {display:block;font-size:10px;font-weight:650;color:#254b83;}
#dashboardContent .dashboard-stat-icon {position:absolute;left:12px;top:12px;display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#e0edff;color:#1679d8 !important;}
#dashboardContent .dashboard-stat-card:nth-child(4) .dashboard-stat-icon {background:#def5ec;color:#169b60 !important;}
#dashboardContent .dashboard-stat-card > strong {display:block;color:#102c60 !important;font-size:22px !important;line-height:1.2;margin:2.4px 0 0;}
#dashboardContent .dashboard-stat-card small {color:#56739e !important;font-size:8.8px !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:11px !important;align-items:stretch;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel,#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .ad-private-wrap {grid-column:auto !important;min-width:0;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {grid-column:1/-1 !important;}
#dashboardContent .dashboard-panel {background:rgba(255,255,255,.94) !important;border:1px solid #d5e3fa !important;border-radius:14px !important;box-shadow:0 4px 13px rgba(32,82,160,.09) !important;padding:12px 14px !important;}
#dashboardContent .dashboard-panel-header,#dashboardContent .ad-home-head {border-bottom:1px solid #d9e6fa !important;padding-bottom:7.2px !important;margin-bottom:7.2px !important;}
#dashboardContent .dashboard-panel-header h3 {color:#0d2c60 !important;font-size:14px !important;}
#dashboardContent .dashboard-panel .ad-home-new {background:#2585df !important;border-color:#2585df !important;color:white !important;border-radius:16px;}
#dashboardContent .ad-home-more {color:#126ac5 !important;}
#dashboardContent .ad-home-list {overflow-y:auto;min-height:0;max-height:176px;scrollbar-width:thin;scrollbar-color:#b3cdee transparent;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:nth-child(1),#dashboardContent .ad-private-wrap > .dashboard-panel {height:248px !important;min-height:0 !important;display:flex;flex-direction:column;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:nth-child(1) .ad-home-list {flex:1;max-height:none;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {height:248px !important;min-height:0 !important;display:flex;flex-direction:column;overflow:hidden;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child .dashboard-table-wrap {overflow:auto;flex:1;min-height:0;}
#dashboardContent .ad-home-list + .ad-home-more,#dashboardContent .dashboard-panel > .ad-home-more {margin-top:auto;}
#dashboardContent .ad-private-wrap {position:relative;min-width:0;}
#dashboardContent .ad-private-wrap > .dashboard-panel {width:100%;padding-right:14px;}
#dashboardContent .ad-private-wrap .ad-home-head {padding-right:72px;}
#dashboardContent .ad-private-toggle {position:absolute;top:17px;right:82px;z-index:2;border:1px solid #cbdff7;background:#f2f7ff;color:#315b93;border-radius:16px;padding:4px 7.2px;font-size:8.8px;cursor:pointer;}
#dashboardContent .ad-private-content {min-height:0;overflow:auto;flex:1;}
#dashboardContent .ad-private-content .ad-home-list {max-height:none;}
#dashboardContent .ad-private-summary {padding:20px 6.4px;text-align:center;font-size:11px;color:#426b9c;}
#dashboardContent .ad-private-content[hidden],#dashboardContent .ad-private-summary[hidden] {display:none !important;}
#dashboardContent .dashboard-panel [data-dashboard-activity] {border-bottom:1px solid #e0eafa;}
#dashboardContent .dashboard-panel [data-dashboard-task] {cursor:pointer;}
#dashboardContent .dashboard-panel [data-dashboard-task]:nth-child(even) {background:#f4f7ff;}
#dashboardContent .dashboard-panel [data-dashboard-task] td:nth-child(4) {color:#1667c3;font-weight:600;}
@media(max-width:850px) {#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {grid-template-columns:1fr !important;}#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {grid-column:auto !important;}#dashboardContent .dashboard-stats {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}#dashboardContent .dashboard-stat-card {padding-left:56px !important;}}
@media(max-width:550px) {#dashboardContent .dashboard-welcome.ad-welcome-compact {padding-right:85px !important;}#dashboardContent .dashboard-welcome.ad-welcome-compact h2 {font-size:22px !important;}#dashboardContent .dashboard-stats {gap:8px !important;}#dashboardContent .dashboard-stat-card {padding:11px !important;min-height:110px !important;}#dashboardContent .dashboard-stat-icon {position:static;width:30px;height:30px;margin-bottom:6px;}#dashboardContent .dashboard-stat-icon svg {width:18px;height:18px;}}


/* ANASOF TASK — unutrašnje skrolovanje i diskretna privatnost */
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel,
#dashboardContent .ad-private-wrap > .dashboard-panel { min-height:0; }
/* Naslovi i donje akcije ostaju fiksni; samo sadržaj skroluje. */
#dashboardContent .ad-home-head { flex:0 0 auto; }
#dashboardContent .ad-home-list,
#dashboardContent .ad-private-content,
#dashboardContent .ad-classic-table-wrap {
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#cad7e6 transparent;
}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:first-child > .ad-home-list {
    flex:1 1 auto;
    max-height:none;
}
#dashboardContent .ad-private-wrap .ad-private-content {flex:1 1 auto;}
#dashboardContent .ad-private-wrap .ad-home-list {max-height:none;overflow:visible;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child .ad-classic-table-wrap {
    flex:1 1 auto;
    max-height:none;
    overflow:auto;
}
#dashboardContent .ad-classic-table {width:100%;border-collapse:separate;border-spacing:0;}
#dashboardContent .ad-classic-table thead th {position:sticky;top:0;z-index:1;background:#f0f5fc;}
#dashboardContent .ad-private-toggle {
    position:absolute;top:17px;right:82px;z-index:2;
    padding:4px 8px;border:1px solid #dce5f0;border-radius:5.6px;
    background:#fff;color:#64758d;font-size:8.8px;font-weight:500;
    box-shadow:none;cursor:pointer;
}
#dashboardContent .ad-private-toggle:hover {background:#f3f7fc;color:#204c82;}
#dashboardContent .ad-private-toggle:focus-visible {outline:2px solid #438bda;outline-offset:2px;}
#dashboardContent .ad-private-summary {flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#657790;text-align:center;padding:8px;}
#dashboardContent .ad-private-summary[hidden] {display:none!important;}
#dashboardContent .ad-private-summary strong {font-size:22px;font-weight:600;color:#244a79;}
#dashboardContent .ad-private-summary span {font-size:10px;}
#dashboardContent .ad-private-summary small {font-size:8.8px;color:#94a1b1;}
#dashboardContent .ad-home-list-row:nth-child(even) {background:#f7f9fc;}
#dashboardContent .ad-home-list-row:hover {background:#f0f5fb;}
@media(max-width:550px){
 #dashboardContent .ad-private-wrap .ad-home-head {padding-right:88px;}
 #dashboardContent .ad-private-toggle {right:91px;top:20px;}
}


/* =====================================================
   ANASOF TASK — POPRAVKA RASPOREDA v2
   Bez preklapanja akcija, bez ugnijezdenog skrola stranice.
   ===================================================== */
:root { --ad-bg:#edf3fc; }
body.app-page {background:#edf3fc !important;overflow-y:auto !important;height:auto !important;}
body.app-page:has(#dashboardContent:not([hidden])) .app-main {height:auto !important;min-height:100vh !important;overflow:visible !important;}
body.app-page:has(#dashboardContent:not([hidden])) .app-content {height:auto !important;min-height:0 !important;overflow:visible !important;background:#edf3fc !important;}
#dashboardContent:not([hidden]) {height:auto !important;min-height:0 !important;overflow:visible !important;display:block !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {overflow:visible !important;flex:none !important;align-content:stretch !important;padding:1px 1px 13px !important;scrollbar-width:auto !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:nth-child(1),
#dashboardContent .ad-private-wrap > .dashboard-panel {height:248px !important;min-height:248px !important;max-height:248px !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {height:248px !important;min-height:248px !important;max-height:248px !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:first-child > .ad-home-list {overflow-y:auto !important;flex:1 1 auto;min-height:0;max-height:none !important;}
#dashboardContent .ad-private-wrap .ad-private-content {overflow-y:auto !important;overflow-x:hidden;flex:1 1 auto;min-height:0;}
#dashboardContent .ad-private-wrap .ad-home-list {overflow:visible !important;max-height:none !important;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child .ad-classic-table-wrap {overflow:auto !important;flex:1 1 auto;min-height:0;}
#dashboardContent .ad-home-list-row {min-height:38px;flex-shrink:0;padding:6.4px 4.8px !important;}
#dashboardContent .ad-home-list-row:nth-child(even) {background:#f5f8fd !important;}
#dashboardContent .ad-home-list-row:hover {background:#eaf2ff !important;}
#dashboardContent .ad-classic-table tbody tr:nth-child(even) {background:#f5f8fd !important;}
#dashboardContent .ad-classic-table tbody tr:hover {background:#eaf2ff !important;}
#dashboardContent .ad-private-wrap .ad-home-head {padding-right:0 !important;}
#dashboardContent .ad-private-wrap .ad-home-new {margin-right:0 !important;}
#dashboardContent .ad-private-toggle {position:absolute !important;top:16px !important;right:84px !important;z-index:3 !important;min-width:46px;height:23px;padding:3.2px 8px !important;white-space:nowrap;border:1px solid #d9e5f6 !important;border-radius:13px !important;background:#f5f9ff !important;color:#496787 !important;font-size:8.8px !important;line-height:14px;}
#dashboardContent .ad-private-toggle:hover {background:#eaf2ff !important;}
#dashboardContent .ad-private-summary {flex:1 1 auto;min-height:0;}
@media(max-width:550px){#dashboardContent .ad-private-toggle {right:100px !important;top:20px !important;}}

/* =====================================================
   V3 — sidebar do samih ivica + uklonjen horizontalni pomak
   ===================================================== */
html, body.app-page { width:100%; max-width:100%; overflow-x:clip !important; }
body.app-page .app-layout {display:block !important; width:100%; max-width:100%; min-width:0;}
body.app-page .app-main {box-sizing:border-box; min-width:0; max-width:none;}
@media (min-width:701px) {
  body.app-page .sidebar {
    position:fixed !important;
    top:0 !important; left:0 !important; bottom:0 !important;
    width:196px !important; height:100dvh !important;
    border-radius:0 !important;
    margin:0 !important;
    overflow-x:hidden !important; overflow-y:auto !important;
  }
  body.app-page .app-main {
    margin-left:196px !important;
    width:calc(100% - 196px) !important;
  }
}
@media (max-width:700px) {
  body.app-page .sidebar {
    position:fixed !important; top:0 !important; left:0 !important;
    bottom:0 !important; width:62px !important; height:100dvh !important;
    border-radius:0 !important; margin:0 !important;
  }
  body.app-page .app-main {margin-left:62px !important;width:calc(100% - 62px) !important;}
}
body.app-page .app-content, body.app-page #dashboardContent,
body.app-page .dashboard-grid, body.app-page .dashboard-panel {min-width:0;max-width:100%;}


/* ANASOF TASK V4 — poslovni plavi stil, samo paneli skroluju */
:root {--ad-green:#2378c8;--ad-green-dark:#164c84;--ad-bg:#edf3fc;--ad-border:#d9e5f5;--at-accent:#237fd9;--at-ink:#18365f;}
body.app-page .app-content {background:#edf3fc !important;}
/* Iskljuci skrol cijelog dashboarda; scroll postoji samo u listama. */
@media (min-width:851px) {
  html:has(body.app-page #dashboardContent:not([hidden])) {height:100%;overflow:hidden !important;}
  body.app-page:has(#dashboardContent:not([hidden])) {height:100dvh !important;min-height:0 !important;overflow:hidden !important;}
  body.app-page:has(#dashboardContent:not([hidden])) .app-main {height:100dvh !important;min-height:0 !important;overflow:hidden !important;display:flex;flex-direction:column;}
  body.app-page:has(#dashboardContent:not([hidden])) .app-content {flex:1;min-height:0 !important;height:auto !important;overflow:hidden !important;display:flex;flex-direction:column;}
  body.app-page #dashboardContent:not([hidden]) {height:100% !important;min-height:0 !important;overflow:hidden !important;display:flex !important;flex-direction:column;}
  #dashboardContent .dashboard-welcome.ad-welcome-compact,#dashboardContent .dashboard-stats {flex:0 0 auto;}
  #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {flex:1 1 auto !important;min-height:0 !important;height:auto !important;overflow:hidden !important;display:grid !important;grid-template-rows:minmax(0,1fr) minmax(0,1fr) !important;align-content:stretch !important;padding:1px 2px 3.2px !important;}
  #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:nth-child(1),
  #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .ad-private-wrap,
  #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child,
  #dashboardContent .ad-private-wrap > .dashboard-panel {height:100% !important;min-height:0 !important;max-height:none !important;}
}
#dashboardContent .dashboard-panel {min-height:0;}
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:first-child > .ad-home-list,
#dashboardContent .ad-private-content,
#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child .ad-classic-table-wrap {min-height:0;overflow-y:auto !important;scrollbar-width:thin;scrollbar-color:#c4d7ed transparent;}
#dashboardContent .ad-classic-table td:nth-child(2) {font-weight:650 !important;color:#19365d !important;}
#dashboardContent .ad-classic-table td:nth-child(4) {color:inherit !important;font-weight:400 !important;}
#dashboardContent .at-status {display:inline-flex;align-items:center;gap:4.8px;padding:2.4px 7.2px;border-radius:79px;font-size:8.8px;line-height:1.5;font-weight:550;color:#50647e;background:#edf1f6;white-space:nowrap;}
#dashboardContent .at-status::before {content:"";width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.8;}
#dashboardContent .at-status--nov {color:#996a27;background:#fff3e4;}
#dashboardContent .at-status--u_toku {color:#2368b5;background:#e9f2ff;}
#dashboardContent .at-status--na_cekanju {color:#826a3c;background:#f7f1e4;}
#dashboardContent .at-status--zavrsen,#dashboardContent .at-status--zatvoren {color:#3f816b;background:#eaf5f0;}
/* Ostale stranice i modali: smirena paleta, bez mijenjanja strukture. */
body.app-page .app-main:not(:has(#dashboardContent:not([hidden]))) {background:#edf3fc !important;}
body.app-page .app-main:not(:has(#dashboardContent:not([hidden]))) .app-header {background:#f9fbff;border-color:#dce6f4;}
body.app-page .app-main:not(:has(#dashboardContent:not([hidden]))) .app-header h1 {color:#17375f;}
body.app-page .app-main:not(:has(#dashboardContent:not([hidden]))) .app-content {background:#edf3fc !important;}
body.app-page .app-main:not(:has(#dashboardContent:not([hidden]))) :is(.dashboard-panel,.card,.modal-content,.dialog-content,.admin-card) {border-color:#dbe5f3;box-shadow:0 4px 14px rgba(28,76,140,.06);}
.ad-activity-overlay {background:rgba(15,39,74,.44);}
.ad-activity-dialog {color:#1d385e;box-shadow:0 18px 52px rgba(20,49,90,.19);}
.ad-activity-dialog-header {border-color:#dce7f5;}
.ad-activity-dialog-header small {color:#5279a7;}
.ad-activity-close {background:#eff5ff;color:#285583;}
.ad-activity-fields span {color:#71829a;}
.ad-activity-checklist,.ad-activity-dialog footer {border-color:#dce7f5;}
.ad-activity-cancel {background:#eef3fa;color:#28527d;}
.ad-activity-open {background:#237fd9;color:white;}
.ad-activity-open:hover {background:#176ab9;}
/* Telefon i mali prozori: dozvoli skrol stranice da se sadrzaj ne odsijeca. */
@media(max-width:850px) {body.app-page:has(#dashboardContent:not([hidden])) {overflow-y:auto !important;}#dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {overflow:visible !important;}}


/* COMPACT 90% — unutrašnji elementi, bez skaliranja stranice */
@media screen and (min-width: 851px) {
  body.app-page { font-size: 90%; }
 
  body.app-page .sidebar { padding: 16px 10px !important; }
  body.app-page .sidebar-link { padding: 8px 10px; font-size: 10px; gap: 8px; }
  body.app-page .sidebar-icon { font-size: 13px; width: 14px; }
  body.app-page .sidebar-brand-text strong { font-size: 12px; }
  body.app-page .sidebar-brand-text span { font-size: 8.8px; }
  body.app-page .app-header { padding: 12px 23px; }
  body.app-page .app-header h1 { font-size: 16px; }
  body.app-page .app-header p { font-size: 10px; }
  body.app-page .app-content { padding: 19px 22px; }
  body.app-page :is(.dashboard-welcome,.dashboard-panel,.dashboard-stat-card,.dashboard-section,.table-card,.info-panel) { border-radius: 8.8px; }
  body.app-page .dashboard-welcome { padding: 8.8px 14px; gap: 18px; }
  body.app-page .dashboard-welcome h2 { font-size: 14px; }
  body.app-page .dashboard-welcome p { font-size: 10px; }
  body.app-page .dashboard-stats { gap: 10px; margin-bottom: 13px; }
  body.app-page .dashboard-stat-card { padding: 12px; }
  body.app-page .dashboard-stat-header { font-size: 8px; margin-bottom: 10px; }
  body.app-page .dashboard-stat-card > strong { font-size: 19px; }
  body.app-page .dashboard-stat-card small { font-size: 7.2px; }
  body.app-page .dashboard-grid { gap: 12px; }
  body.app-page .dashboard-panel { padding: 14px; }
  body.app-page .dashboard-panel-header { gap: 10px; margin-bottom: 13px; }
  body.app-page .dashboard-panel-header h3 { font-size: 10px; }
  body.app-page .dashboard-panel-header p { font-size: 7.2px; }
  body.app-page :is(.primary-action-button,.secondary-button) { padding: 7.2px 10px; font-size: 10px; }
  body.app-page :is(.admin-table,.ad-classic-table) th { padding: 8px 10px; font-size: 8.8px; }
  body.app-page :is(.admin-table,.ad-classic-table) td { padding: 8.8px 10px; font-size: 10px; }
  body.app-page .status-badge { padding: 2.4px 5.6px; font-size: 8px; }
  body.app-page .at-status { font-size: 8px; }
  body.app-page :is(.admin-modal,.company-modal,.ad-activity-dialog) { font-size: 90%; }
  body.app-page :is(.admin-modal,.company-modal) { padding: 16px; }
  body.app-page :is(.form-group input,.form-group select,.form-group textarea) { font-size: 10px; padding: 8px 10px; }
}
/* Visina ekrana, pozicija menija i skrol ostaju iz V4. */

/* Compact 80%: zadrzana puna visina viewporta, bez zoom/transform skaliranja. */
@media (min-width: 851px) {
 html:has(body.app-page #dashboardContent:not([hidden])) { height:100%; }
 body.app-page:has(#dashboardContent:not([hidden])) .sidebar { top:0 !important; bottom:0 !important; height:100dvh !important; }
 body.app-page:has(#dashboardContent:not([hidden])) .app-main { height:100dvh !important; }
 body.app-page:has(#dashboardContent:not([hidden])) .app-content { min-height:0 !important; }
 #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three { min-height:0 !important; }
}


/* ==========================================================
   ANASOF TASK — DNEVNI ZADACI / KOMPATNI PREGLED
   Isti vizuelni jezik kao Dashboard; bez globalnog zoom-a.
   ========================================================== */
body.app-page .daily-module .daily-header-panel {
    padding: 11px 14px !important;
    margin-bottom: 10px;
    border-color: #dce6f2;
    box-shadow: 0 3px 12px rgba(27, 67, 118, .04);
}
body.app-page .daily-module .daily-toolbar-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 12px;
    min-height: 36px;
}
body.app-page .daily-module .daily-toolbar-compact .daily-view-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}
body.app-page .daily-module .daily-toolbar-compact .daily-date-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11px;
    color: #57718f;
    margin: 0;
}
body.app-page .daily-module .daily-toolbar-compact .daily-date-label input,
body.app-page .daily-module .daily-toolbar-compact .daily-date-label .flatpickr-input {
    width: 150px;
    min-width: 0;
    height: 35px;
    padding: 7px 10px;
    border: 1px solid #d6e2ef;
    border-radius: 8px;
    background: #fff;
    color: #253e60;
    font-size: 12px;
}
body.app-page .daily-module .daily-toolbar-compact .daily-summary {
    margin-left: auto;
    color: #68809e;
    font-size: 11px;
    white-space: nowrap;
}
body.app-page .daily-module .daily-toolbar-compact #dailyAdd {
    background: #2780dc;
    border-radius: 8px;
    padding: 9px 13px;
    font-weight: 600;
    white-space: nowrap;
}
body.app-page .daily-module .daily-toolbar-compact #dailyAdd:hover { background: #196abf; }
body.app-page .daily-module .daily-view-buttons .secondary-button {
    border: 1px solid #d5e0ee;
    background: #fff;
    color: #355574;
    border-radius: 8px;
    padding: 8px 12px;
}
body.app-page .daily-module .daily-view-buttons .secondary-button:disabled {
    opacity: 1;
    background: #eaf2fc;
    border-color: #b9d5f5;
    color: #206bc1;
    font-weight: 700;
    cursor: default;
}
body.app-page .daily-module .daily-section {
    padding: 13px 14px;
    border-color: #dce6f2;
}
body.app-page .daily-module .daily-activity-tabs { margin-bottom: 10px; }
body.app-page .daily-module .daily-activity-tab {
    padding: 7px 11px;
    border: 1px solid #d6e1ee;
    border-radius: 8px;
    background: #fff;
    color: #42617e;
    font-size: 11px;
}
body.app-page .daily-module .daily-activity-tab.is-active {
    background: #e8f2ff;
    border-color: #8bbdf6;
    color: #1873d6;
}
body.app-page .daily-module .daily-table th {
    background: #eaf1f8;
    color: #385673;
    padding: 9px 10px;
    font-size: 11px;
}
body.app-page .daily-module .daily-table td {
    padding: 9px 10px;
    height: 42px;
    border-bottom-color: #e6edf5;
    font-size: 11px;
}
body.app-page .daily-module .daily-table tbody tr:nth-child(even) { background: #f7faff; }
body.app-page .daily-module .daily-table tbody tr:hover { background: #edf5ff; }
body.app-page .daily-module .daily-name-cell { min-width: 185px; }
body.app-page .daily-module .daily-item-title {
    display: block;
    font-weight: 700;
    color: #263f5e;
}
body.app-page .daily-module .daily-item-description {
    display: block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 3px;
    color: #8495a9;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
}
body.app-page .daily-module .daily-item-completed .daily-item-title {
    color: #8798a9;
    text-decoration: line-through;
}
body.app-page .daily-module .daily-item-completed .daily-name-cell { text-decoration: none; }
body.app-page .daily-module .daily-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 6px;
    background: #fff3e2;
    color: #98600e;
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}
body.app-page .daily-module .daily-status.is-done {
    background: #e5f5eb;
    color: #237848;
}
body.app-page .daily-module .daily-status.is-late {
    background: #fde9e9;
    color: #b43b3b;
}
body.app-page .daily-module .daily-group-row td {
    background: #f0f5fa;
    color: #2d4b6d;
}
body.app-page .daily-module .daily-group-carried td {
    background: #e8f2ff;
    border-top: 2px solid #87baf5;
    color: #2068b2;
}
body.app-page .daily-module .daily-actions .daily-edit-button {
    border: 1px solid #d6e2f0;
    border-radius: 7px;
    background: #fff;
    color: #345a83;
}
body.app-page .daily-module .daily-actions .daily-stop-button {
    border-radius: 7px;
    color: #8293a8;
}

/* Zajednički standard modala za naredne module */
body.app-page .admin-modal.anasof-modal {
    width: min(500px, 100%);
    max-width: 500px;
    max-height: min(88dvh, 800px);
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #dce6f2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(20,49,90,.20);
}
body.app-page .anasof-modal .anasof-modal-header {
    flex: 0 0 auto;
    margin: 0;
    padding: 17px 20px;
    border-bottom: 1px solid #e3ebf5;
}
body.app-page .anasof-modal .anasof-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #203b5d;
}
body.app-page .anasof-modal .anasof-modal-header button {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    color: #748ba5;
    font-size: 21px;
}
body.app-page .anasof-modal .anasof-modal-header button:hover { background: #eef4fc; }
body.app-page .anasof-modal .daily-create-form {
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.app-page .anasof-modal .daily-modal-content {
    min-height: 0;
    overflow-y: auto;
    padding: 17px 20px;
}
body.app-page .anasof-modal .anasof-modal-actions {
    flex: 0 0 auto;
    margin: 0;
    padding: 13px 20px;
    border-top: 1px solid #e3ebf5;
    background: #fbfdff;
}
body.app-page .anasof-modal .form-group label { color: #3b5876; font-size: 11px; font-weight: 650; }
body.app-page .anasof-modal :is(input:not([type="checkbox"]), select, textarea) {
    width: 100%;
    border: 1px solid #d5e1ef;
    border-radius: 8px;
    background: #fff;
    color: #263f5e;
    font: inherit;
    font-size: 12px;
    padding: 10px 11px;
}
body.app-page .anasof-modal textarea {
    min-height: 64px;
    resize: vertical;
    line-height: 1.45;
}
body.app-page .anasof-modal :is(input,select,textarea):focus {
    outline: none;
    border-color: #74adee;
    box-shadow: 0 0 0 3px rgba(39,128,220,.10);
}
body.app-page .anasof-modal .daily-optional { color: #96a6b8; font-size: 10px; font-weight: 400; }
body.app-page .anasof-modal .daily-field-help { color: #8799ac; font-size: 10px; }
body.app-page .anasof-modal .anasof-modal-actions .primary-action-button {
    background: #2780dc;
    border-radius: 8px;
}
@media (max-width: 700px) {
    body.app-page .daily-module .daily-toolbar-compact .daily-summary { margin-left: 0; }
    body.app-page .daily-module .daily-toolbar-compact #dailyAdd { width: 100%; }
    body.app-page .anasof-modal .daily-modal-content { padding: 14px; }
}

/* Završavanje aktivnosti bez checkbox kolone */
body.app-page .daily-module .daily-actions { white-space: nowrap; text-align: right; min-width: 180px; }
body.app-page .daily-module .daily-complete-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    margin-right: 6px; padding: 6px 10px; border: 1px solid #a8d8bc;
    border-radius: 7px; background: #e9f7ee; color: #247a49;
    font-size: 11px; font-weight: 650; cursor: pointer;
}
body.app-page .daily-module .daily-complete-button:hover { background: #d8f0e1; }
body.app-page .daily-module .daily-complete-button.is-reopen {
    border-color: #d4e1f0; background: #eef4fb; color: #41668e;
}
body.app-page .daily-module .daily-complete-button.is-reopen:hover { background: #dfeafa; }
body.app-page .daily-module .daily-complete-button:disabled { opacity: .55; cursor: wait; }

/* ANASOF PRIVATNO — redizajn tabele, statusa, akcija i modala */
#pageContent.private-module .private-compact-header { padding: 11px 14px; border-color:#dce6f2; }
#pageContent.private-module .private-compact-activities { padding: 12px 14px; border-color:#dce6f2; }
.private-module .private-compact-main { gap:9px; }
.private-module .private-compact-main > select { height:34px; border-radius:8px; padding:5px 10px; }
.private-module .private-compact-main .private-tabs button { min-height:34px; padding:7px 11px; border-radius:8px; }
.private-module .private-compact-right .private-header-actions button { min-height:34px; padding:7px 12px; border-radius:8px; }
.private-module .private-table-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.private-module .private-table-topbar .private-view-tabs { display:flex; gap:7px; flex-wrap:wrap; margin:0!important; }
.private-module .private-view-tabs button { min-height:32px!important; padding:7px 12px!important; border:1px solid #d5e1ee; background:#fff; color:#416080; border-radius:8px; }
.private-module .private-view-tabs button.is-active { background:#e9f3ff; color:#196ec3; border-color:#a6c9ee; font-weight:700; }
.private-module .private-table-count { font-size:11px; color:#7186a0; white-space:nowrap; }
.private-module .private-activities-table { font-size:11px; }
.private-module .private-activities-table th { background:#eaf1f8; color:#385673; padding:10px; font-weight:650; }
.private-module .private-activities-table td { padding:10px; border-color:#e5edf6; }
.private-module .private-activities-table tbody tr:not(.private-items-row):hover { background:#f4f9ff; }
.private-module .private-name-col { min-width:200px; }
.private-module .private-name-col strong { color:#273f5d; font-weight:700; }
.private-module .private-name-col small { display:block; color:#8294a8; margin-top:3px; font-size:10px; }
.private-module .private-name-col .private-description { max-width:340px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#93a2b4; }
.private-module .private-status { display:inline-flex; padding:5px 9px; border-radius:7px; font-size:10px; font-weight:650; white-space:nowrap; }
.private-module .private-status.is-progress { background:#e8f2ff; color:#2468b1; }
.private-module .private-status.is-carried { background:#fff1df; color:#995e12; }
.private-module .private-status.is-late { background:#fde9e9; color:#b43b3b; }
.private-module .private-status.is-done { background:#e5f5eb; color:#247b4a; }
.private-module .private-row-actions { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.private-module .private-row-actions .secondary-button { border:1px solid #d6e2f0; border-radius:7px; padding:6px 9px; background:#fff; color:#345a83; }
.private-module .private-row-actions .private-complete-button { border:1px solid #badcc8; background:#eaf7ee; color:#267847; border-radius:7px; padding:6px 10px; }
.private-module .private-row-actions .private-complete-button:hover { background:#d9f0e1; }
.private-module .private-row-actions .private-complete-button.is-completed { border-color:#d7e1ed; background:#f5f8fc; color:#60768c; }
.private-module .private-more { position:relative; }
.private-module .private-more summary { display:flex; align-items:center; justify-content:center; width:30px; height:29px; border:1px solid #d6e2f0; border-radius:7px; color:#456582; background:#fff; font-size:18px; cursor:pointer; list-style:none; }
.private-module .private-more summary::-webkit-details-marker { display:none; }
.private-module .private-more-menu { position:absolute; right:0; top:calc(100% + 4px); z-index:30; min-width:125px; padding:5px; border:1px solid #d9e3ef; border-radius:9px; background:#fff; box-shadow:0 10px 25px rgba(23,50,81,.15); }
.private-module .private-more-menu button { display:block; width:100%; text-align:left; padding:8px 10px; border:0; border-radius:6px; background:transparent; color:#355371; font-size:11px; cursor:pointer; }
.private-module .private-more-menu button:hover { background:#eef5fd; }
.private-module .private-expand { margin-top:5px; font-size:10px; font-weight:600; color:#2674bf; }
.private-module .private-items-row td { background:#f6faff; }
.private-module .private-check-items { padding:8px 12px; }
.private-module .private-unified-modal { width:min(500px,calc(100vw - 24px)); max-width:500px; max-height:88dvh; padding:0; display:flex; flex-direction:column; overflow:hidden; border:1px solid #dce6f2; border-radius:14px; box-shadow:0 20px 60px rgba(20,49,90,.2); }
.private-module .private-unified-modal .admin-modal-header { flex-shrink:0; padding:16px 20px; margin:0; border-bottom:1px solid #e3ebf5; }
.private-module .private-unified-modal form { display:flex; flex-direction:column; min-height:0; overflow:auto; }
.private-module .private-unified-modal .private-activity-fields { padding:16px 20px; overflow-y:auto; }
.private-module .private-unified-modal .admin-modal-actions { flex-shrink:0; margin:0; padding:13px 20px; border-top:1px solid #e3ebf5; background:#fbfdff; }
.private-module .private-unified-modal input:not([type=checkbox]),.private-module .private-unified-modal select,.private-module .private-unified-modal textarea { width:100%; border:1px solid #d5e1ef; border-radius:8px; padding:9px 11px; background:#fff; font-size:12px; }
.private-module .private-unified-modal textarea { resize:vertical; }
.private-module .private-unified-modal label { color:#3b5876; font-size:11px; font-weight:600; }
@media(max-width:700px) { .private-module .private-table-topbar { flex-wrap:wrap; } .private-module .private-table-scroll { overflow-x:auto; } }


/* PRIVATNO — konačni kompaktni modal; nadjačava stare .admin-modal stilove */
body.app-page .private-module .admin-modal.private-activity-dialog.private-unified-modal {
  box-sizing:border-box !important;
  width: min(460px, calc(100vw - 28px)) !important;
  min-width:0 !important;
  max-width:460px !important;
  max-height: min(86dvh, 760px) !important;
  padding:0 !important;
  border-radius:12px !important;
  overflow:hidden !important;
}
body.app-page .private-module .private-activity-dialog .admin-modal-header {
  padding:12px 16px !important;
  min-height:48px;
}
body.app-page .private-module .private-activity-dialog .admin-modal-header h3 {font-size:14px !important;}
body.app-page .private-module .private-activity-dialog .private-activity-fields {
  display:grid; gap:9px !important; padding:12px 16px !important;
}
body.app-page .private-module .private-activity-dialog .private-activity-fields > label {
  display:flex; flex-direction:column; gap:4px; margin:0 !important;
  font-size:11px !important; line-height:1.35;
}
body.app-page .private-module .private-activity-dialog .private-activity-fields :is(input:not([type=checkbox]), select, textarea),
body.app-page .private-module .private-activity-dialog .private-activity-fields input.flatpickr-input {
  box-sizing:border-box !important; width:100% !important; min-height:0 !important;
  height:36px !important; padding:7px 10px !important;
  border-radius:7px !important; font-size:12px !important;
}
body.app-page .private-module .private-activity-dialog
.private-activity-fields textarea[name="stavke"] {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 160px;
    padding: 10px 12px !important;
    line-height: 1.5;
    resize: vertical;
}
body.app-page .private-module .private-activity-dialog .admin-modal-actions {
  padding:10px 16px !important;
}
body.app-page .private-module .private-activity-dialog .admin-modal-actions button {
  min-height:32px; padding:7px 12px; font-size:11px;
}
body.app-page .private-module .private-activity-dialog .private-activity-fields input.flatpickr-input[readonly] {cursor:pointer;}

/* PRIVATNO — PONAVLJANJE I ROK U JEDNOM REDU */

.private-activity-dialog .private-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.private-activity-dialog .private-date-row > label {
    min-width: 0;
    margin: 0;
}

/* Veće polje za unos stavki */

.private-activity-dialog textarea[name="stavke"] {
    min-height: 125px !important;
    height: 125px;
    resize: vertical;
    line-height: 1.5;
}

/* Modal može biti viši, ali ne prelazi ekran */

.private-activity-dialog {
    max-height: 92dvh !important;
}

.private-activity-dialog .private-activity-fields {
    overflow-y: auto;
}

/* Mobilni prikaz */

@media (max-width: 480px) {
    .private-activity-dialog .private-date-row {
        grid-template-columns: 1fr;
    }
}

/* PRIVATNO — PLAVA DUGMAD */

.private-module .private-tabs button.active,
.private-module .private-team.selected {
    background: #e8f2ff !important;
    border-color: #91bdec !important;
    color: #1768b5 !important;
}

.private-module .private-expand {
    background: #edf5ff !important;
    border-color: #b6d3f1 !important;
    color: #246bb2 !important;
}

.private-module .private-expand:hover {
    background: #dcecff !important;
}

.private-module .private-complete-button {
    background: #e8f2ff !important;
    border-color: #b6d3f1 !important;
    color: #246bb2 !important;
}

.private-module .private-complete-button:hover {
    background: #dcecff !important;
}

.private-module .private-complete-button.is-completed {
    background: #e5f5eb !important;
    border-color: #b9dfc7 !important;
    color: #247b4a !important;
}

/* Modal prati visinu sadržaja */
body.app-page .private-module .private-activity-dialog {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Sadržaj bez unutrašnjeg skrolovanja */
body.app-page .private-module .private-activity-fields {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

/* Polje Stavke */
body.app-page .private-module
.private-activity-fields textarea[name="stavke"] {
    height: 150px !important;
    min-height: 150px !important;
}

/* Detalji tiketa — uži modal i zbijen pregled osnovnih podataka */
.ticket-detail-overlay .ticket-detail-modal {
  width: min(690px, calc(100vw - 28px)) !important;
  max-height: 94dvh;
  border-radius: 12px;
}
.ticket-detail-modal .ticket-modal-header {padding: 12px 18px;}
.ticket-detail-modal .ticket-modal-content {padding: 14px 18px 18px;}
.ticket-detail-modal .ticket-detail-page {gap: 10px;}
.ticket-detail-modal .ticket-detail-heading h2 {font-size: 17px;line-height:1.3;margin:0 0 3px;}
.ticket-detail-modal .ticket-detail-heading p {font-size:12px;margin:0 0 5px;}
.ticket-detail-modal .ticket-detail-card {padding:14px 16px;border-radius:9px;}
.ticket-detail-modal .ticket-detail-grid {
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap: 12px 14px;
}
.ticket-detail-modal .ticket-detail-grid > div {min-width:0;gap:3px;}
.ticket-detail-modal .ticket-detail-grid span {font-size:10px;line-height:1.3;color:#73869c;}
.ticket-detail-modal .ticket-detail-grid strong {font-size:12px;line-height:1.35;color:#213d59;overflow-wrap:anywhere;}
.ticket-detail-modal .ticket-description {margin-top:13px;padding-top:12px;}
.ticket-detail-modal .ticket-description h3 {font-size:12px;margin-bottom:6px;}
.ticket-detail-modal .ticket-description p {font-size:12px;line-height:1.45;margin:0;}
.ticket-detail-modal .ticket-detail-actions {margin-top:13px;gap:7px;}
.ticket-detail-modal .ticket-detail-actions button {border:1px solid #a9cbea;background:#fff;color:#246bb2;border-radius:7px;}
@media(max-width:620px){
 .ticket-detail-overlay .ticket-detail-modal {width:calc(100vw - 16px);}
 .ticket-detail-modal .ticket-detail-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .ticket-detail-modal .ticket-modal-content {padding:12px;}
}
/* ZADACI — tabela tiketa: naglašene ključne kolone */
#pageContent .ticket-table tbody td:nth-child(2) {font-weight:700;color:#183653;}
#pageContent .ticket-table tbody td:nth-child(5) {font-weight:700;color:#233a53;}
#pageContent .ticket-table tbody td:nth-child(6) {font-weight:700;color:#247bd1;}
#pageContent .ticket-table tbody td:nth-child(11) {font-weight:700;color:#247bd1;white-space:nowrap;}
#pageContent .ticket-table tbody td:nth-child(8),
#pageContent .ticket-table tbody td:nth-child(9) {font-weight:600;}
#pageContent .ticket-table tbody td:nth-child(12) button {border:1px solid #a9cbea;background:#fff;color:#246bb2;border-radius:7px;font-weight:600;}
#pageContent .ticket-table tbody td:nth-child(12) button:hover {background:#edf5ff;border-color:#6ca9e6;}
#pageContent .ticket-table th,#pageContent .ticket-table td {padding:9px 10px;}


/* =====================================================
   ZADACI — fiksna stranica, skrolovanje samo tabele
   ===================================================== */
@media (min-width: 701px) {
  body.app-page:has(#pageContent .ticket-page) {
    height: 100dvh;
    overflow: hidden;
  }
  body.app-page:has(#pageContent .ticket-page) .app-main {
    height: 100dvh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.app-page:has(#pageContent .ticket-page) .app-header {
    flex: 0 0 auto;
  }
  body.app-page:has(#pageContent .ticket-page) .app-content {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.app-page #pageContent:has(.ticket-page) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #pageContent .ticket-page {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #pageContent .ticket-page > .dashboard-panel {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #pageContent .ticket-advanced-filters,
  #pageContent .ticket-toolbar,
  #pageContent .ticket-filters { flex-shrink: 0; }
  #pageContent #ticketListContent {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  #pageContent .ticket-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  #pageContent .ticket-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #edf4fc;
  }
}

/* Pregledni podaci u tabeli */
#pageContent .ticket-title-cell { font-weight: 700; color: #183653; }
#pageContent .ticket-executor-cell { font-weight: 700; color: #233a53; }
#pageContent .ticket-creator-cell { font-weight: 700; color: #247bd1; }
#pageContent .ticket-deadline-cell { font-weight: 700; color: #247bd1; white-space: nowrap; }
#pageContent .ticket-deadline-cell.is-overdue { color: #c24142; }
#pageContent .ticket-list-summary { text-align: right; flex: 0 0 auto; margin: 0 0 8px; }
#pageContent .ticket-priority-badge,
#pageContent .ticket-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 10px;
  white-space: nowrap;
}
#pageContent .ticket-priority-badge.priority-normalan { background: #edf2f7; color: #52677e; }
#pageContent .ticket-priority-badge.priority-nizak { background: #eaf6ee; color: #287448; }
#pageContent .ticket-priority-badge.priority-visok { background: #fff1dc; color: #a7660c; }
#pageContent .ticket-priority-badge.priority-hitno { background: #fde8e8; color: #b42335; }
#pageContent .ticket-status-badge.status-nov { background: #e6f1ff; color: #216cb5; }
#pageContent .ticket-status-badge.status-u_toku { background: #fff2de; color: #9b620e; }
#pageContent .ticket-status-badge.status-na_cekanju { background: #edf1f6; color: #607087; }
#pageContent .ticket-status-badge.status-zavrsen { background: #e5f6eb; color: #24794c; }
#pageContent .ticket-status-badge.status-zatvoren { background: #e9edf2; color: #586678; }
#pageContent .ticket-open-btn {
  border: 1px solid #9bc5ee;
  background: #fff;
  color: #236eb8;
  font-weight: 700;
  border-radius: 7px;
}
#pageContent .ticket-open-btn:hover { background: #edf6ff; border-color: #5a9cdb; }


/* ZADACI — uredjen gornji red, kompaktni modali i desni panel */
#pageContent .ticket-top-actions { display:flex; align-items:center; justify-content:space-between; gap:14px; flex:0 0 auto; }
#pageContent .ticket-top-actions .ticket-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0; }
#pageContent .ticket-top-actions > #ticketNewBtn { flex:0 0 auto; }
.ticket-detail-overlay .ticket-detail-modal { width:min(610px, calc(100vw - 24px)) !important; }
.ticket-detail-modal .ticket-modal-content { padding:10px 14px 14px !important; }
.ticket-detail-modal .ticket-detail-card { padding:12px 14px !important; }
.ticket-detail-modal .ticket-detail-grid { gap:9px 10px !important; }
.ticket-detail-modal .ticket-detail-grid > div { gap:2px !important; }
.ticket-detail-modal .ticket-detail-actions { display:flex; flex-wrap:wrap; gap:6px !important; }
.ticket-detail-modal .ticket-detail-actions button { margin:0 !important; }
.ticket-new-modal { width:min(570px,calc(100vw - 24px)) !important; max-height:94dvh !important; transition:width .18s ease; }
.ticket-new-modal-content { padding:12px 14px !important; }
.ticket-new-modal-content .ticket-form-card { padding:12px 14px !important; }
.ticket-new-modal-content #newTicketForm { display:flex; flex-direction:column; gap:9px; }
.ticket-new-modal-content #newTicketForm > .ticket-field { margin:0 !important; }
.ticket-new-modal-content #ticketDescription { min-height:70px !important; height:70px !important; }
.ticket-new-modal-content .ticket-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
.ticket-new-modal-content .ticket-field :is(input,select) { min-height:36px; }
.ticket-new-modal-content #ticketExpandRequest { border:1px solid #a7c9ee !important; background:#f4f9ff !important; color:#2166a9 !important; border-radius:8px; }
.ticket-new-modal-content #assignmentFieldset { min-width:0; border-color:#c8def5 !important; }
@media(min-width:1000px) {
  .ticket-new-modal.is-expanded { width:min(1050px,calc(100vw - 40px)) !important; }
  .ticket-new-modal.is-expanded #newTicketForm { display:grid; grid-template-columns:minmax(0,520px) minmax(0,1fr); align-content:start; column-gap:20px; }
  .ticket-new-modal.is-expanded #newTicketForm > :not(#assignmentFieldset) { grid-column:1; min-width:0; }
  .ticket-new-modal.is-expanded #assignmentFieldset { grid-column:2; grid-row:1 / span 9; align-self:start; margin:0 !important; padding:14px !important; max-height:calc(94dvh - 120px); overflow-y:auto; }
}
@media(max-width:700px) {
 #pageContent .ticket-top-actions { flex-wrap:wrap; }
 .ticket-new-modal-content .ticket-form-grid { grid-template-columns:1fr !important; }
 .ticket-detail-modal .ticket-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
/* Novi tiket – kompaktan obrazac i desni panel */
.ticket-new-modal {width:min(560px,calc(100vw - 28px)) !important; max-height:94dvh !important;}
.ticket-new-modal-content {padding:12px 14px !important; overflow-y:auto;}
.ticket-new-modal-content .ticket-form-card {padding:14px !important;}
.ticket-new-modal-content #newTicketForm {display:flex;flex-direction:column;gap:12px;}
.ticket-new-modal-content .ticket-field {min-width:0;}
.ticket-new-modal-content .ticket-field label {display:block;margin-bottom:5px;font-size:12px;font-weight:600;color:#4a6585;}
.ticket-new-modal-content .ticket-field :is(input,select,textarea) {width:100%;box-sizing:border-box;border:1px solid #d4e2f1;border-radius:8px;font-size:13px;}
.ticket-new-modal-content .ticket-field :is(input,select) {height:38px;min-height:38px;}
.ticket-new-modal-content #ticketDescription {height:84px !important;min-height:84px !important;resize:vertical;}
.ticket-new-modal-content .ticket-main-fields {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
.ticket-new-modal-content .ticket-group-tools {margin-top:-3px;}
.ticket-new-modal-content #ticketManageGroups {border:1px solid #a8c8ed;background:#f5f9ff;color:#1b65ae;}
.ticket-new-modal-content #ticketGroupManager {margin-top:8px;padding:12px;border:1px solid #d6e4f4;border-radius:9px;background:#f8fbff;}
.ticket-new-modal-content .ticket-group-create {display:flex;gap:8px;margin-top:7px;}
.ticket-new-modal-content .ticket-group-create input {min-width:0;flex:1;}
.ticket-new-modal-content .ticket-expand-control {width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;text-align:left;border:1px solid #9fc4ef !important;background:#f4f9ff !important;color:#1767b6 !important;border-radius:8px;}
.ticket-new-modal-content .ticket-expand-control small {display:block;margin-top:3px;font-size:11px;font-weight:400;color:#607b9b;}
.ticket-new-modal-content .ticket-form-actions {display:flex;justify-content:flex-end;gap:8px;margin-top:3px;}
.ticket-new-modal-content .ticket-secondary-btn {border:1px solid #a8c8ed;color:#1767b6;background:#fff;border-radius:7px;}
.ticket-new-modal-content #assignmentFieldset[hidden],.ticket-new-modal-content #ticketGroupManager[hidden],.ticket-new-modal-content #ticketManageGroups[hidden] {display:none !important;}
@media (min-width:1000px) {
  .ticket-new-modal.is-expanded {width:min(1030px,calc(100vw - 44px)) !important;}
  .ticket-new-modal.is-expanded #newTicketForm {display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px;align-content:start;}
  .ticket-new-modal.is-expanded #newTicketForm > :not(#assignmentFieldset) {grid-column:1;min-width:0;}
  .ticket-new-modal.is-expanded #assignmentFieldset {grid-column:2;grid-row:1 / span 12;min-width:0;align-self:start;max-height:calc(94dvh - 120px);overflow-y:auto;margin:0 !important;padding:14px !important;}
}
@media (max-width:650px) {.ticket-new-modal-content .ticket-main-fields {grid-template-columns:1fr !important;}}


/* =====================================================
   ZADACI — uskladjen raspored (aktivni style.css)
   ===================================================== */
#pageContent .ticket-top-actions.dashboard-panel {
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}
#pageContent .ticket-top-actions > .ticket-filters {
    display: flex;
    flex: 0 1 auto;
    width: auto;
    margin: 0;
    align-items: center;
    gap: 8px;
}
#pageContent .ticket-top-actions > #ticketNewBtn {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}
.ticket-detail-modal .ticket-detail-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}
.ticket-detail-modal .ticket-detail-action-bar > .ticket-detail-actions {
    display: contents;
}
.ticket-detail-modal .ticket-detail-action-bar button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
}
.ticket-detail-modal .ticket-detail-action-bar .ticket-btn-danger {
    border: 1px solid #e8a8ae;
    background: #fff5f5;
    color: #b42332;
}
.ticket-detail-modal .ticket-detail-action-bar .ticket-btn-success {
    border: 1px solid #21865a;
    background: #21865a;
    color: #fff;
}
@media (max-width: 700px) {
    #pageContent .ticket-top-actions.dashboard-panel { flex-wrap: wrap; }
    #pageContent .ticket-top-actions > #ticketNewBtn { width: auto; }
}


/* =====================================================
   ZADACI — završno poravnanje gornjeg panela i akcija
   ===================================================== */
@media (min-width: 701px) {
  #pageContent .ticket-page > .ticket-top-actions.dashboard-panel {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
#pageContent .ticket-page > .ticket-top-actions.dashboard-panel {
  flex-grow: 0;
  flex-shrink: 0;
}
.ticket-detail-modal .ticket-detail-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  margin-top: 16px;
  border: 1px solid #e0e4e9;
  border-radius: 12px;
  background: #fcfcfd;
}
.ticket-detail-modal .ticket-detail-action-bar > .ticket-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ticket-detail-modal .ticket-detail-action-bar > .ticket-detail-actions-main {
  margin-left: auto;
}
.ticket-detail-modal .ticket-detail-action-bar button {
  width: auto;
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid #d8dde3;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ticket-detail-modal .ticket-detail-action-bar .ticket-btn-danger {
  border-color: #ef4444;
  background: #fff;
  color: #ef4444;
}
.ticket-detail-modal .ticket-detail-action-bar .ticket-btn-success {
  border-color: #00a447;
  background: #00a447;
  color: #fff;
}
@media (max-width: 700px) {
  #pageContent .ticket-page > .ticket-top-actions.dashboard-panel {
    min-height: 0;
    height: auto;
    padding: 12px;
  }
  .ticket-detail-modal .ticket-detail-action-bar > .ticket-detail-actions-main {
    margin-left: 0;
  }
}


/* ANASOF: kompaktni detalji tiketa, naglašeni statusi i komentari */
.ticket-detail-modal .ticket-detail-grid .ticket-status-badge,
.ticket-detail-modal .ticket-detail-grid .ticket-priority-badge {
  display:inline-flex;align-items:center;align-self:flex-start;width:max-content;max-width:100%;
  padding:4px 9px;border-radius:7px;font-size:10px;font-weight:700;line-height:1.3;
}
.ticket-detail-modal .ticket-status-badge.status-nov {background:#e6f1ff;color:#216cb5;}
.ticket-detail-modal .ticket-status-badge.status-u_toku {background:#fff2de;color:#9b620e;}
.ticket-detail-modal .ticket-status-badge.status-na_cekanju {background:#edf1f6;color:#607087;}
.ticket-detail-modal .ticket-status-badge.status-zavrsen {background:#e5f6eb;color:#24794c;}
.ticket-detail-modal .ticket-status-badge.status-zatvoren {background:#e9edf2;color:#586678;}
.ticket-detail-modal .ticket-status-badge.status-otkazan {background:#fde8e8;color:#b42335;}
.ticket-detail-modal .ticket-priority-badge.priority-normalan {background:#edf2f7;color:#52677e;}
.ticket-detail-modal .ticket-priority-badge.priority-nizak {background:#eaf6ee;color:#287448;}
.ticket-detail-modal .ticket-priority-badge.priority-visok {background:#fff1dc;color:#a7660c;}
.ticket-detail-modal .ticket-priority-badge.priority-hitno {background:#fde8e8;color:#b42335;}
.ticket-detail-modal .ticket-collaborator-name {color:#247bd1;font-weight:700;font-size:11px;}
.ticket-detail-modal .ticket-work-toggle[data-item-done="0"] {
  border:1px solid #4b9bea!important;background:#f6fbff!important;color:#206fbd!important;
  border-radius:7px;font-weight:600;
}
.ticket-detail-modal .ticket-work-toggle[data-item-done="0"]:hover {background:#eaf4ff!important;}
.ticket-detail-modal .ticket-comments-section,
.ticket-detail-modal .ticket-comments-content,
.ticket-detail-modal .ticket-comments-list,
.ticket-detail-modal .ticket-comment,
.ticket-detail-modal .ticket-comment-header,
.ticket-detail-modal .ticket-comment-text {text-align:left!important;}
.ticket-detail-modal .ticket-comment-text {margin-left:0;white-space:pre-wrap;}

/* Oznaka prioriteta na lijevoj ivici reda tabele */
#pageContent .ticket-table tbody tr.ticket-row td:first-child {position:relative;padding-left:17px;}
#pageContent .ticket-table tbody tr.ticket-row td:first-child::before {
 content:"";position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:0 5px 5px 0;background:#3b82f6;
}
#pageContent .ticket-table tbody tr.ticket-row-priority-hitno td:first-child::before {background:#ef4444;}
#pageContent .ticket-table tbody tr.ticket-row-priority-visok td:first-child::before {background:#f59e0b;}
#pageContent .ticket-table tbody tr.ticket-row-priority-normalan td:first-child::before {background:#3b82f6;}
#pageContent .ticket-table tbody tr.ticket-row-priority-nizak td:first-child::before {background:#94a3b8;}


/* ANASOF — kompaktni komentari i diskretni plavi brojači (11/2026) */
.ticket-detail-modal .ticket-history-toggle .ticket-toggle-count,
.ticket-detail-modal .ticket-comments-toggle .ticket-toggle-count {
    color: #247bd1;
    font-weight: 700;
}
.ticket-detail-modal .ticket-comments-list {
    align-items: stretch;
    gap: 7px;
    margin-bottom: 10px;
}
.ticket-detail-modal .ticket-comment {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 8px 10px;
    margin: 0;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #edf0f4;
    border-radius: 7px;
}
.ticket-detail-modal .ticket-comment-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 12px;
    margin: 0 0 3px;
    text-align: left;
}
.ticket-detail-modal .ticket-comment-text {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    text-indent: 0;
    font-size: 10px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* FIX: komentari - bez uvlacenja prvog reda i nepotrebne visine */
.ticket-comments-section .ticket-comment {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    margin: 0 !important;
}
.ticket-comments-section .ticket-comment-header {
    margin: 0 0 4px !important;
}
.ticket-comments-section .ticket-comment-text {
    display: block !important;
    text-align: left !important;
    text-indent: 0 !important;
    white-space: pre-line !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    line-height: 1.45 !important;
}


/* ANASOF — odvojeni odjeljci modala detalja tiketa */
.ticket-detail-modal .ticket-detail-card {display:flex;flex-direction:column;gap:10px;padding:12px!important;}
.ticket-detail-modal .ticket-modal-box {min-width:0;margin:0;padding:12px 14px;border:1px solid #91b9ed;border-radius:9px;background:#fff;}
.ticket-detail-modal .ticket-modal-box-title {margin:0 0 10px;color:#244b78;font-size:12px;font-weight:700;line-height:1.3;}
.ticket-detail-modal .ticket-modal-box .ticket-detail-grid {margin:0;}
.ticket-detail-modal .ticket-modal-box .ticket-description {margin:0!important;padding:0!important;border:0!important;}
.ticket-detail-modal .ticket-modal-box-description .ticket-description h3 {display:none;}
.ticket-detail-modal .ticket-modal-box-description .ticket-description p {margin:0;}
.ticket-detail-modal .ticket-modal-box-activities #ticketWorkItems h3 {display:none;}
.ticket-detail-modal .ticket-modal-box-activities #ticketWorkItems {margin-top:0!important;}
.ticket-detail-modal .ticket-executor-name {color:#247bd1!important;}
.ticket-detail-modal .ticket-modal-box-participants .ticket-participation {margin:0!important;}
.ticket-detail-modal .ticket-modal-box-records .ticket-history-section {margin:0 0 8px!important;}
.ticket-detail-modal .ticket-modal-box-records .ticket-comments-section {margin:0!important;}
.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-action-bar {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;justify-content:space-between!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-actions {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin:0!important;padding:0!important;}
.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-actions-main {margin-left:auto!important;}
.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-action-bar button {width:auto!important;min-height:31px!important;margin:0!important;padding:6px 12px!important;border:1px solid #91b9ed!important;border-radius:7px!important;background:#fff!important;color:#2168b5!important;font-size:11px!important;font-weight:600!important;white-space:nowrap;}
.ticket-detail-modal .ticket-modal-box-actions #ticketCancelTaskBtn,.ticket-detail-modal .ticket-modal-box-actions #ticketDeleteBtn {border-color:#f0a7ac!important;color:#bc3540!important;background:#fff8f8!important;}
.ticket-detail-modal .ticket-modal-box-actions #ticketFinishBtn {border-color:#23965b!important;color:#fff!important;background:#23965b!important;}
.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-action-bar button:hover {filter:brightness(.96);}
@media(max-width:700px){.ticket-detail-modal .ticket-modal-box {padding:10px;}.ticket-detail-modal .ticket-modal-box-actions .ticket-detail-actions-main {margin-left:0!important;}}


/* 11.11.2026: četiri odvojena plava okvira, bez suvišnih boxova */
.ticket-detail-page .ticket-detail-card {display:flex;flex-direction:column;gap:11px;padding:12px!important;}
.ticket-detail-page .ticket-modal-box {display:block;min-width:0;margin:0!important;padding:12px 14px!important;border:1px solid #a8c9ee!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;}
.ticket-detail-page .ticket-modal-box-title {display:block;margin:0 0 9px!important;font-size:12px!important;font-weight:700!important;color:#254d78!important;}
.ticket-detail-page .ticket-modal-box-general .ticket-detail-grid {margin:0!important;padding:0!important;border:0!important;}
.ticket-detail-page .ticket-modal-box-description .ticket-description {margin:0!important;padding:0!important;border:0!important;}
.ticket-detail-page .ticket-modal-box-description .ticket-description h3 {display:none!important;}
.ticket-detail-page .ticket-modal-box-description .ticket-description p {margin:0!important;}
.ticket-detail-page .ticket-modal-box-participants .ticket-participation {margin:0!important;}
.ticket-detail-page .ticket-modal-box-activities #ticketWorkItems {margin:0!important;padding:0!important;border:0!important;}
.ticket-detail-page .ticket-modal-box-activities #ticketWorkItems h3 {display:block!important;margin:0 0 5px!important;}
.ticket-detail-page .ticket-executor-name {color:#247bd1!important;}
.ticket-detail-page .ticket-modal-records {display:flex;flex-direction:column;gap:8px;margin:0!important;}
.ticket-detail-page .ticket-modal-records .ticket-history-section,
.ticket-detail-page .ticket-modal-records .ticket-comments-section {margin:0!important;}
/* Dugmad: isti red na desktopu, prelom samo kad nema mjesta */
.ticket-detail-page .ticket-modal-actions {padding:10px 0 0!important;border-top:1px solid #e2e8f0!important;}
.ticket-detail-page .ticket-modal-actions .ticket-detail-action-bar {display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;}
.ticket-detail-page .ticket-modal-actions .ticket-detail-actions {display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;margin:0!important;padding:0!important;}
.ticket-detail-page .ticket-modal-actions .ticket-detail-actions-main {margin-left:auto!important;}
.ticket-detail-page .ticket-modal-actions button {display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-height:31px!important;padding:6px 12px!important;margin:0!important;border:1px solid #86b6f3!important;border-radius:7px!important;background:#fff!important;color:#236cb9!important;font-size:11px!important;font-weight:600!important;line-height:1.35!important;white-space:nowrap!important;cursor:pointer!important;}
.ticket-detail-page .ticket-modal-actions #ticketCancelTaskBtn,
.ticket-detail-page .ticket-modal-actions #ticketDeleteBtn {border-color:#efa6ab!important;background:#fff7f7!important;color:#bd3642!important;}
.ticket-detail-page .ticket-modal-actions #ticketFinishBtn {border-color:#25985d!important;background:#25985d!important;color:#fff!important;}
.ticket-detail-page .ticket-modal-actions button:hover {filter:brightness(.96);}
@media(max-width:700px){.ticket-detail-page .ticket-modal-box {padding:10px!important;}.ticket-detail-page .ticket-modal-actions .ticket-detail-actions-main {margin-left:0!important;}}

/* Sitna dorada: blago plavi opis i istaknuta imena zaduženih */
.ticket-detail-page .ticket-modal-box.ticket-modal-box-description {
    background: #f1f7ff !important;
    border-color: #a8c9ee !important;
}
.ticket-detail-page .ticket-modal-box-activities .ticket-work-assignee {
    color: #247bd1 !important;
    font-weight: 600;
}


/* DNEVNI ZADACI — uska statusna linija na početku svakog reda */
body.app-page .daily-module .daily-table tbody tr.daily-row-active > td:first-child,
body.app-page .daily-module .daily-table tbody tr.daily-row-carried > td:first-child,
body.app-page .daily-module .daily-table tbody tr.daily-row-late > td:first-child,
body.app-page .daily-module .daily-table tbody tr.daily-row-done > td:first-child {
    position: relative;
    padding-left: 17px;
}
body.app-page .daily-module .daily-table tbody tr.daily-row-active > td:first-child::before,
body.app-page .daily-module .daily-table tbody tr.daily-row-carried > td:first-child::before,
body.app-page .daily-module .daily-table tbody tr.daily-row-late > td:first-child::before,
body.app-page .daily-module .daily-table tbody tr.daily-row-done > td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #3b82f6;
}
body.app-page .daily-module .daily-table tbody tr.daily-row-carried > td:first-child::before { background: #f59e0b; }
body.app-page .daily-module .daily-table tbody tr.daily-row-late > td:first-child::before { background: #ef4444; }
body.app-page .daily-module .daily-table tbody tr.daily-row-done > td:first-child::before { background: #22c55e; }


/* PRIVATNO — statusna linija na početku svakog reda */
.private-module .private-activities-table tbody tr[data-activity-row] > td:first-child {
    position: relative;
    padding-left: 17px;
}
.private-module .private-activities-table tbody tr[data-activity-row] > td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #3b82f6;
}
.private-module .private-activities-table tbody tr.private-line-done > td:first-child::before { background: #22c55e; }
.private-module .private-activities-table tbody tr.private-line-carried > td:first-child::before { background: #f59e0b; }
.private-module .private-activities-table tbody tr.private-line-late > td:first-child::before { background: #ef4444; }


/* Pocetna: statusne linije u tri panela, bez uticaja na ostale module */
#dashboardContent .ad-home-list-row.ad-status-line {
    border-left: 4px solid transparent;
    padding-left: 9px !important;
}
#dashboardContent .ad-home-list-row.ad-status-line--active { border-left-color: #3b82f6; }
#dashboardContent .ad-home-list-row.ad-status-line--transferred { border-left-color: #f59e0b; }
#dashboardContent .ad-home-list-row.ad-status-line--overdue { border-left-color: #ef4444; }
#dashboardContent .ad-home-list-row.ad-status-line--completed { border-left-color: #22c55e; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line td:first-child {
    box-shadow: inset 4px 0 0 transparent;
    padding-left: 14px;
}
#dashboardContent .ad-classic-table tbody tr.ad-status-line--active td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--transferred td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--overdue td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--completed td:first-child { box-shadow: inset 4px 0 0 #22c55e; }


/* POCETNA — odvojene, krace i zaobljene statusne crtice */
#dashboardContent .ad-home-list-row.ad-status-line {
    position: relative;
    border-left: 0 !important;
    padding-left: 16px !important;
}
#dashboardContent .ad-home-list-row.ad-status-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    bottom: 7px;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: #3b82f6;
    pointer-events: none;
}
#dashboardContent .ad-home-list-row.ad-status-line--active::before { background: #3b82f6; }
#dashboardContent .ad-home-list-row.ad-status-line--transferred::before { background: #f59e0b; }
#dashboardContent .ad-home-list-row.ad-status-line--overdue::before { background: #ef4444; }
#dashboardContent .ad-home-list-row.ad-status-line--completed::before { background: #22c55e; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line td:first-child {
    position: relative;
    box-shadow: none !important;
    padding-left: 17px;
}
#dashboardContent .ad-classic-table tbody tr.ad-status-line td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 8px 0 0 8px;
    background: #3b82f6;
    pointer-events: none;
}
#dashboardContent .ad-classic-table tbody tr.ad-status-line--active td:first-child::before { background: #3b82f6; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--transferred td:first-child::before { background: #f59e0b; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--overdue td:first-child::before { background: #ef4444; }
#dashboardContent .ad-classic-table tbody tr.ad-status-line--completed td:first-child::before { background: #22c55e; }

/* Kompaktna realizacija u detaljima tiketa */
.ticket-progress-compact{display:grid;gap:7px;margin:3px 0 12px}
.ticket-progress-row{display:flex;align-items:center;gap:9px;min-height:17px}
.ticket-progress-name{flex:0 0 57px;font-size:11px;font-weight:600;color:#334155}
.ticket-progress-value{flex:0 0 34px;text-align:right;font-size:11px;color:#334155}
.ticket-progress-row .ticket-estimate-track{flex:1;min-width:30px;height:6px;background:#e5e7eb;border-radius:6px;overflow:hidden}
.ticket-estimate-fill{height:100%;background:#f59e0b;border-radius:6px}
.ticket-estimate-actual{background:#de6835}
.ticket-progress-compact .ticket-estimate-edit{display:flex;align-items:center;gap:7px;margin:2px 0 0;font-size:10px;color:#64748b}
.ticket-progress-compact .ticket-estimate-edit input{box-sizing:border-box;width:52px;height:27px;padding:3px 6px;font-size:11px;border:1px solid #cbd5e1;border-radius:6px}
.ticket-progress-compact .ticket-estimate-edit button{padding:4px 9px;font-size:10px;min-height:27px}

/* Privatne liste: diskretno označavanje završenih stavki */
.private-check-items .private-check-entry.private-check-finished > span {
  color: #8996a8;
  text-decoration: line-through;
  text-decoration-color: #aab5c4;
  text-decoration-thickness: 1px;
}
.private-check-items .private-check-entry.private-check-finished > small { color: #94a3b8; }
.private-check-items .private-check-entry.private-check-locked { cursor: default; }
.private-check-items .private-check-entry.private-check-locked input[type="checkbox"] {
  opacity: .7;
  cursor: not-allowed;
}

/* Korisnik i datum odmah iza naziva stavke, uključujući mobilni prikaz */
.private-module .private-check-items label.private-check-entry {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:6px;
  flex-wrap:wrap;
  white-space:normal;
}
.private-module .private-check-items label.private-check-entry > input[type="checkbox"] {
  flex:0 0 auto;
  margin:0 3px 0 0;
}
.private-module .private-check-items label.private-check-entry > span {
  flex:0 0 auto;
  min-width:0;
}
.private-module .private-check-items label.private-check-entry > small {
  flex:0 1 auto;
  margin:0 0 0 3px;
  font-size:10px;
  line-height:1.35;
  color:#7b8da4;
  white-space:normal;
}
@media (max-width:700px) {
  .private-module .private-check-items label.private-check-entry { gap:5px; }
  .private-module .private-check-items label.private-check-entry > small { font-size:9px; }
}


/* POČETNA — vodoravne akcentne ivice na samom kraju boxa.
   Kao postojeće uspravne statusne ivice, samo okrenute vodoravno.
   Bez odvajanja linije od ivice i bez promjene ostalog dizajna. */
#dashboardContent .dashboard-stats .dashboard-stat-card,
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel {
  position: relative;
}
#dashboardContent .dashboard-stats .dashboard-stat-card::after,
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #3b82f6;
  border-radius: 0 0 10px 10px;
  pointer-events: none;
  z-index: 2;
}
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(2)::after { background: #f59e0b; }
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(3)::after { background: #16a36a; }
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(4)::after { background: #38a3df; }
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel:not(.dashboard-panel-large)::after { background: #16a36a; }
#dashboardContent .dashboard-grid.ad-home-grid .ad-private-wrap .dashboard-panel::after { background: #f59e0b; }


/* 12.11.2026 — Precizno pozicioniranje linija na početnoj. */
/* KPI: linija samo na DONJOJ ivici, uz zaobljene donje uglove. */
#dashboardContent .dashboard-stats .dashboard-stat-card {
  position: relative;
  overflow: hidden;
}
#dashboardContent .dashboard-stats .dashboard-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 4px;
  background: #3b82f6;
  border-radius: 0 0 13px 13px;
  pointer-events: none;
  z-index: 3;
}
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(2)::before { background: #84cc16; }
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(3)::before { background: #ec4899; }
#dashboardContent .dashboard-stats .dashboard-stat-card:nth-child(4)::before { background: #d946ef; }
/* Vraćamo originalni blagi ukras u kartici; ne koristimo ::after za liniju. */
#dashboardContent .dashboard-stats .dashboard-stat-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  height: auto;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 350 120' preserveAspectRatio='none'%3E%3Cpath d='M100 120 C175 85 200 112 250 66 C295 24 315 80 350 64 L350 120Z' fill='%239dc6fa' fill-opacity='.27'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
/* Dnevne i Privatno: donja linija prati zakrivljenje boxa. */
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel {
  overflow: hidden;
  border-radius: 13px;
}
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel::after {
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  height: 4px;
  border-radius: 0 0 13px 13px;
}
/* Linija odmah ispod podnaslova u zaglavlju svakog od tri panela. */
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel-header.ad-home-head {
  position: relative;
  border-bottom: 0 !important;
  padding-bottom: 11px !important;
  margin-bottom: 9px !important;
}
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel-header.ad-home-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #16a36a;
  border-radius: 999px;
  pointer-events: none;
}
#dashboardContent .dashboard-grid.ad-home-grid .ad-private-wrap .dashboard-panel-header.ad-home-head::after { background: #f59e0b; }
#dashboardContent .dashboard-grid.ad-home-grid > .dashboard-panel.dashboard-panel-large .dashboard-panel-header.ad-home-head::after { background: #3b82f6; }
/* Moji zadaci: naglašeniji naslovi kolona. */
#dashboardContent .dashboard-grid.ad-home-grid .dashboard-panel-large .ad-classic-table thead th {
  font-weight: 750 !important;
  color: #34465e;
}

/* ISPRAVKA: brojevne kartice ostaju bijele; boja je samo na donjoj ivici. */
#dashboardContent .dashboard-stats .dashboard-stat-card {
  background: #ffffff !important;
  background-image: none !important;
}
#dashboardContent .dashboard-stats .dashboard-stat-card::after {
  content: none !important;
  display: none !important;
}
#dashboardContent .dashboard-stats .dashboard-stat-card::before {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  border-radius: 0 0 13px 13px !important;
}


/* ANASOF — zajednička zaobljena donja ivica boxova i modala.
   Ne mijenja prethodno uređenu početnu, statusne trake ni dugmad. */
:root { --anasof-box-accent: #3b82f6; }

/* Sadržajni boxovi u ostalim modulima (bez redova tabela i sitnih kontrola). */
:is(.ticket-toolbar, .ticket-list-toolbar, .ticket-filter-panel,
    .ticket-form-card, .ticket-detail-card, .dashboard-section,
    .table-card, .info-panel, .daily-header-panel, .daily-unified-panel,
    .private-header, .private-section, .private-panel,
    .private-team-panel, .admin-panel, .settings-panel,
    .at-panel, .at-card):not(#dashboardContent *) {
  border-radius: 11px;
  box-shadow: inset 0 -3px 0 var(--anasof-box-accent);
}

/* Kartice i paneli koji već imaju vlastitu donju obojenu ivicu ostaju netaknuti. */
/* Modalni prozori: ivica je unutar zaobljenog okvira, ne na overlayu. */
:is(.ticket-detail-modal, .ticket-new-modal, .ticket-confirm-modal,
    .daily-modal, .private-activity-dialog, .ad-activity-dialog,
    .private-modal, .modal-dialog, .modal-content,
    .at-modal, .at-dialog) {
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 var(--anasof-box-accent),
              0 14px 38px rgba(20, 42, 69, .12);
}

/* Unutrašnji dijelovi modala ne dobijaju dodatne duple trake. */
:is(.ticket-detail-modal, .ticket-new-modal, .daily-modal, .private-activity-dialog)
  :is(.ticket-detail-card, .ticket-form-card, .dashboard-section) {
  box-shadow: none;
}


/* =====================================================
   ZADACI — MOBILNI FILTERI I BOXOVI
   Desktop tabela ostaje nepromijenjena.
   ===================================================== */
.ticket-mobile-toolbar,
.ticket-mobile-cards { display: none; }

@media (max-width: 700px) {
    #pageContent .ticket-page > .dashboard-panel {
        padding: 10px;
    }

    #pageContent .ticket-top-actions {
        padding: 10px;
        gap: 8px;
    }

    #pageContent .ticket-mobile-toolbar {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
        margin-bottom: 9px;
    }

    #pageContent #ticketMobileSearch {
        width: 100%;
        min-width: 0;
        height: 34px;
        padding: 0 10px;
        border: 1px solid #d8e2ee;
        border-radius: 7px;
        background: #fff;
        color: #253a55;
        font-size: 11px;
    }

    #pageContent #ticketMobileFilterToggle {
        position: relative;
        display: flex;
        flex: 0 0 36px;
        align-items: center;
        justify-content: center;
        height: 34px;
        border: 1px solid #d4e1f1;
        border-radius: 7px;
        background: #fff;
        color: #247bd1;
        cursor: pointer;
    }

    #pageContent #ticketMobileFilterToggle.has-active-filters {
        background: #edf5ff;
        border-color: #80b7ee;
    }

    #ticketMobileFilterCount:not([hidden]) {
        position: absolute;
        top: -6px;
        right: -6px;
        display: grid;
        place-items: center;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        border-radius: 9px;
        background: #247bd1;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
    }

    #pageContent #ticketAdvancedFilters {
        display: none;
        flex: 0 0 auto;
        margin: 0 0 10px;
        padding: 10px;
        border: 1px solid #e1e9f4;
        border-radius: 8px;
        background: #f7faff;
    }

    #pageContent #ticketAdvancedFilters.ticket-mobile-filters-open {
        display: flex;
    }

    #pageContent #ticketAdvancedFilters label:has(#ticketSearchFilter) {
        display: none;
    }

    #pageContent #ticketListContent {
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    #pageContent .ticket-table-wrap { display: none; }

    #pageContent .ticket-mobile-cards {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-height: 0;
    }

    #pageContent .ticket-mobile-card {
        position: relative;
        min-width: 0;
        padding: 9px 10px 9px 12px;
        border: 1px solid #e4ebf4;
        border-left: 3px solid #3287e1;
        border-radius: 7px;
        background: #fff;
        cursor: pointer;
    }

    #pageContent .ticket-mobile-card.ticket-row-priority-hitno { border-left-color: #ef4444; }
    #pageContent .ticket-mobile-card.ticket-row-priority-visok { border-left-color: #f59e0b; }
    #pageContent .ticket-mobile-card.ticket-row-priority-normalan { border-left-color: #3287e1; }
    #pageContent .ticket-mobile-card.ticket-row-priority-nizak { border-left-color: #94a3b8; }
    #pageContent .ticket-mobile-card.ticket-mobile-overdue { background: #fff6f6; }
    #pageContent .ticket-mobile-card.ticket-mobile-due-today { background: #fffdf1; }

    #pageContent .ticket-mobile-card-head {
        display: flex;
        align-items: flex-start;
        gap: 6px;
        min-width: 0;
    }

    #pageContent .ticket-mobile-number {
        flex: 0 0 auto;
        padding-top: 1px;
        color: #247bd1;
        font-size: 10px;
        font-weight: 700;
    }

    #pageContent .ticket-mobile-title {
        flex: 1 1 auto;
        min-width: 0;
        color: #203c5c;
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    #pageContent .ticket-mobile-card-head .ticket-status-badge {
        flex: 0 0 auto;
        font-size: 9px;
    }

    #pageContent .ticket-mobile-meta {
        margin: 4px 0 6px;
        color: #7a8799;
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    #pageContent .ticket-mobile-details,
    #pageContent .ticket-mobile-bottom {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px 9px;
        font-size: 9px;
        color: #61738a;
    }

    #pageContent .ticket-mobile-details strong { color: #2b4a6b; }
    #pageContent .ticket-mobile-deadline strong { color: #247bd1; }
    #pageContent .ticket-mobile-deadline.is-overdue strong { color: #c24142; }

    #pageContent .ticket-mobile-bottom {
        margin-top: 7px;
        padding-top: 6px;
        border-top: 1px solid #edf1f6;
    }

    #pageContent .ticket-mobile-progress { margin-left: auto; white-space: nowrap; }
    #pageContent .ticket-mobile-progress strong { color: #247bd1; }
    #pageContent .ticket-mobile-estimate { color: #8c98a8; }
    #pageContent .ticket-mobile-bottom .ticket-chat-list-button { flex: 0 0 auto; }
}


/* ===== ZADACI: OZNAKE ROKOVA NA MOBILNOM ===== */
@media (max-width: 700px) {
    #pageContent .ticket-mobile-rok-icon {
        display: inline-flex;
        flex: 0 0 17px;
        align-items: center;
        justify-content: center;
        width: 17px;
        height: 17px;
        border: 1px solid currentColor;
        border-radius: 50%;
        font-size: 11px;
        font-weight: 700;
    }

    #pageContent .ticket-mobile-rok-icon.overdue,
    #pageContent .ticket-mobile-rok-label.overdue {
        color: #c24142;
    }

    #pageContent .ticket-mobile-rok-icon.today,
    #pageContent .ticket-mobile-rok-label.today {
        color: #b7791f;
    }

    #pageContent .ticket-mobile-rok-label {
        font-size: 9px;
        font-weight: 700;
    }
}


/* =====================================================
   ZADACI — MOBILNI SKROL I DESKTOP ROKOVI
   ===================================================== */
@media (max-width: 700px) {
    body.app-page:has(#pageContent .ticket-page),
    body.app-page:has(#pageContent .ticket-page) .app-main,
    body.app-page:has(#pageContent .ticket-page) .app-content,
    body.app-page #pageContent:has(.ticket-page),
    #pageContent .ticket-page,
    #pageContent .ticket-page > .dashboard-panel,
    #pageContent #ticketListContent {
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: visible;
    }

    body.app-page:has(#pageContent .ticket-page) {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #pageContent .ticket-page > .dashboard-panel {
        display: block;
    }

    #pageContent #ticketListContent {
        display: block;
        overflow-x: hidden;
        overflow-y: visible;
        touch-action: pan-y;
    }

    #pageContent .ticket-mobile-cards {
        height: auto;
        overflow: visible;
    }
}

@media (min-width: 701px) {
    #pageContent .ticket-table tbody tr.ticket-row[data-deadline="overdue"] td {
        background: #fff1f1;
    }

    #pageContent .ticket-table tbody tr.ticket-row[data-deadline="today"] td {
        background: #fff9e8;
    }

    #pageContent .ticket-table tbody tr.ticket-row[data-deadline]:hover td {
        filter: brightness(0.985);
    }
}

#pageContent .ticket-desktop-number {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

#pageContent .ticket-deadline-indicator {
    display: inline-flex;
    width: 17px;
    height: 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

#pageContent .ticket-deadline-indicator.overdue,
#pageContent .ticket-deadline-text.overdue {
    color: #c24142;
}

#pageContent .ticket-deadline-indicator.today,
#pageContent .ticket-deadline-text.today {
    color: #a86c12;
}

#pageContent .ticket-deadline-text {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

#pageContent .ticket-deadline-cell.is-due-today {
    color: #a86c12;
}

/* ===== ZADACI — MOBILNI RASPORED I SKROL ===== */
@media (max-width: 700px) {
    body.app-page:has(#pageContent .ticket-page) {
        height: 100dvh;
        overflow: hidden;
    }

    body.app-page:has(#pageContent .ticket-page) .app-main {
        height: 100dvh;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    #pageContent .ticket-page,
    #pageContent .ticket-page > .dashboard-panel,
    #pageContent #ticketListContent {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    #pageContent .ticket-page > .ticket-top-actions.dashboard-panel {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 6px;
        padding: 9px 8px;
    }

    #pageContent .ticket-top-actions > .ticket-filters {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        min-width: 0;
        gap: 3px;
    }

    #pageContent .ticket-top-actions .ticket-filter {
        flex: 1 1 0;
        min-width: 0;
        padding: 7px 3px;
        font-size: 8px;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
    }

    #pageContent .ticket-top-actions > #ticketNewBtn {
        flex: 0 0 auto;
        width: auto;
        padding: 8px 6px;
        border: 1px solid #2685e7;
        border-radius: 7px;
        background: #fff;
        color: #247bd1;
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
    }

    #pageContent .ticket-top-actions > #ticketNewBtn:hover {
        background: #f0f7ff;
    }
}

/* ===== ZADACI — NOVI TIKET, BIJELA POZADINA I PLAVA IVICA ===== */
#pageContent .ticket-top-actions > #ticketNewBtn {
    border: 1px solid #2685e7;
    background: #fff;
    color: #247bd1;
}

#pageContent .ticket-top-actions > #ticketNewBtn:hover {
    background: #f0f7ff;
    color: #1766b5;
}

/* =====================================================
   ZADACI — SKROL SAMO ISPOD PRVOG BOXA (MOBILNI)
   ===================================================== */
@media (max-width: 700px) {
    body.app-page:has(#pageContent .ticket-page) {
        height: 100dvh;
        overflow: hidden;
    }

    body.app-page:has(#pageContent .ticket-page) .app-main {
        display: flex;
        flex-direction: column;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    body.app-page:has(#pageContent .ticket-page) .app-header {
        flex: 0 0 auto;
    }

    body.app-page:has(#pageContent .ticket-page) .app-content {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    body.app-page #pageContent:has(.ticket-page) {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    #pageContent .ticket-page {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    #pageContent .ticket-page > .ticket-top-actions.dashboard-panel {
        flex: 0 0 auto;
    }

    #pageContent .ticket-page > .dashboard-panel:not(.ticket-top-actions) {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    #pageContent #ticketListContent,
    #pageContent .ticket-mobile-cards {
        flex: 0 0 auto;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}


/* =====================================================
   DNEVNI ZADACI - OZNAKE PONAVLJANJA KAO NA POČETNOJ
   ===================================================== */

body.app-page .daily-module .daily-title-with-frequency {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

body.app-page .daily-module .daily-frequency-ring {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 2px solid #8bbaff;
    border-radius: 50%;
    background: #f7fbff;
    color: #287fe2;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

body.app-page .daily-module .daily-title-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

body.app-page .daily-module .daily-title-copy strong {
    overflow-wrap: anywhere;
}

body.app-page .daily-module .daily-frequency-caption {
    display: block;
    color: #7a899b;
    font-size: 10px;
    font-weight: 400;
    text-decoration: none;
}

body.app-page .daily-module .daily-mobile-head .daily-title-with-frequency {
    flex: 1 1 auto;
}

body.app-page .daily-module .daily-mobile-head .daily-status {
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    body.app-page .daily-module .daily-frequency-ring {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    body.app-page .daily-module .daily-title-with-frequency {
        gap: 8px;
    }
}

/* =====================================================
   DNEVNI ZADACI — MOBILNE KARTICE I OZNAKE PONAVLJANJA
   ===================================================== */

/* Desktop koristi tabelu, mobilni zasebne kartice. */
body.app-page .daily-module .daily-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    body.app-page .daily-module .daily-table-viewport {
        display: none;
    }

    body.app-page .daily-module .daily-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }

    body.app-page .daily-module .daily-mobile-card {
        position: relative;
        min-width: 0;
        padding: 10px 11px 10px 13px;
        border: 1px solid #e1eaf4;
        border-left: 4px solid #3b82f6;
        border-radius: 8px;
        background: #fff;
    }

    body.app-page .daily-module .daily-mobile-card.daily-mobile-carried {
        border-left-color: #f59e0b;
        background: #fffaf1;
    }

    body.app-page .daily-module .daily-mobile-card.daily-mobile-late {
        border-left-color: #ef4444;
        background: #fff6f6;
    }

    body.app-page .daily-module .daily-mobile-card.daily-mobile-done {
        border-left-color: #22c55e;
    }

    body.app-page .daily-module .daily-mobile-card.daily-mobile-today {
        background: #fffbee;
    }

    body.app-page .daily-module .daily-mobile-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px;
        min-width: 0;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-with-frequency {
        display: flex;
        flex: 1 1 auto;
        align-items: center;
        min-width: 0;
        gap: 9px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-frequency-ring {
        display: inline-flex;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border: 2px solid #8bbaff;
        border-radius: 50%;
        background: #f7fbff;
        color: #287fe2;
        font-size: 12px;
        font-weight: 700;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-copy {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-copy strong {
        color: #203b61;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    body.app-page .daily-module .daily-mobile-head .daily-frequency-caption {
        color: #7a899b;
        font-size: 9px;
        font-weight: 400;
    }

    body.app-page .daily-module .daily-mobile-head .daily-status {
        flex: 0 0 auto;
        font-size: 9px;
    }

    body.app-page .daily-module .daily-mobile-description {
        margin: 7px 0 0 43px;
        color: #64748b;
        font-size: 10px;
    }

    body.app-page .daily-module .daily-mobile-meta,
    body.app-page .daily-module .daily-mobile-dates {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        margin-top: 8px;
        color: #66778a;
        font-size: 9px;
    }

    body.app-page .daily-module .daily-mobile-dates strong {
        color: #287fe2;
    }

    body.app-page .daily-module .daily-mobile-alert.late { color: #c24142; font-weight: 700; }
    body.app-page .daily-module .daily-mobile-alert.today { color: #b7791f; font-weight: 700; }
    body.app-page .daily-module .daily-mobile-alert.carried { color: #b7791f; font-weight: 700; }

    body.app-page .daily-module .daily-mobile-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 9px;
        padding-top: 8px;
        border-top: 1px solid #e5edf6;
    }

    body.app-page .daily-module .daily-mobile-group {
        padding: 8px 10px;
        border-radius: 7px;
        background: #eaf3ff;
        color: #236cb9;
        font-size: 10px;
        font-weight: 700;
    }

    body.app-page .daily-module .daily-mobile-empty {
        margin: 4px 0;
        color: #7a899b;
        font-size: 10px;
    }
}

/* =====================================================
   DNEVNI ZADACI — KOMPAKTAN MOBILNI PRIKAZ
   I DESKTOP LISTA DO DNA RADNE POVRŠINE
   ===================================================== */

@media (min-width: 701px) {
    body.app-page .daily-module {
        height: calc(100dvh - 105px);
        min-height: 320px;
    }

    body.app-page .daily-module .daily-content-scroll {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    body.app-page .daily-module .daily-unified-panel {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0 !important;
        margin-bottom: 0;
    }

    body.app-page .daily-module .daily-unified-panel .daily-table-viewport {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
    }
}

@media (max-width: 700px) {
    body.app-page .daily-module .daily-header-panel {
        padding: 9px 10px !important;
        margin-bottom: 7px;
    }

    body.app-page .daily-module .daily-toolbar-compact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 7px 8px;
        align-items: center;
    }

    body.app-page .daily-module .daily-toolbar-compact .daily-view-buttons {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    body.app-page .daily-module .daily-view-buttons .secondary-button {
        min-width: 0;
        width: 100%;
        padding: 7px 5px;
        font-size: 10px;
        white-space: nowrap;
    }

    body.app-page .daily-module .daily-toolbar-compact .daily-date-label {
        grid-column: 1 / -1;
        gap: 6px;
        font-size: 10px;
    }

    body.app-page .daily-module .daily-toolbar-compact .daily-date-label input,
    body.app-page .daily-module .daily-toolbar-compact .daily-date-label .flatpickr-input {
        width: 145px;
        height: 31px;
        padding: 5px 8px;
        font-size: 11px;
    }

    body.app-page .daily-module .daily-toolbar-compact .daily-summary {
        grid-column: 1;
        margin: 0;
        font-size: 9px;
        white-space: normal;
    }

    body.app-page .daily-module .daily-toolbar-compact #dailyAdd {
        grid-column: 2;
        width: auto;
        padding: 7px 9px;
        border: 1px solid #2780dc;
        border-radius: 7px;
        background: #fff;
        color: #206fc6;
        font-size: 10px;
        line-height: 1.3;
    }

    body.app-page .daily-module .daily-toolbar-compact #dailyAdd:hover {
        background: #eff6ff;
    }

    body.app-page .daily-module .daily-section {
        padding: 9px 10px;
    }

    body.app-page .daily-module .daily-table-topbar {
        margin-bottom: 7px;
    }

    body.app-page .daily-module .daily-mobile-list {
        gap: 6px;
    }

    body.app-page .daily-module .daily-mobile-card {
        padding: 8px 9px 8px 10px;
        border-radius: 7px;
    }

    body.app-page .daily-module .daily-mobile-head {
        align-items: center;
        gap: 5px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-with-frequency {
        gap: 7px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-frequency-ring {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-copy {
        gap: 1px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-title-copy strong {
        font-size: 10px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-frequency-caption {
        font-size: 8px;
    }

    body.app-page .daily-module .daily-mobile-head .daily-status {
        padding: 4px 6px;
        font-size: 8px;
    }

    /* Ponavljanje je već navedeno ispod naziva; ne ponavljati ga u metapodacima. */
    body.app-page .daily-module .daily-mobile-meta > span:first-child {
        display: none;
    }

    body.app-page .daily-module .daily-mobile-meta,
    body.app-page .daily-module .daily-mobile-dates {
        gap: 3px 7px;
        margin-top: 4px;
        font-size: 8px;
    }

    body.app-page .daily-module .daily-mobile-description {
        margin: 4px 0 0 37px;
        font-size: 9px;
        line-height: 1.25;
    }

    body.app-page .daily-module .daily-mobile-actions {
        gap: 5px;
        margin-top: 6px;
        padding-top: 6px;
    }

    body.app-page .daily-module .daily-mobile-actions .daily-complete-button,
    body.app-page .daily-module .daily-mobile-actions .daily-edit-button {
        margin: 0;
        padding: 5px 8px;
        font-size: 9px;
    }

    body.app-page .daily-module .daily-mobile-actions .daily-stop-button {
        width: 27px;
        height: 27px;
    }

    body.app-page .daily-module .daily-mobile-group {
        padding: 6px 8px;
        font-size: 9px;
    }
}


/* =====================================================
   PRIVATNO - KRUŽNE OZNAKE KAO NA POČETNOJ
   Desktop i mobilni prikaz
   ===================================================== */

.private-module .private-home-name {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.private-module .private-home-name-text {
    flex: 1;
    min-width: 0;
}

.private-module .private-home-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #cbd8e9;
    border-radius: 50%;
    background: #f8fbff;
    color: #7187a1;
}

.private-module .private-home-icon.is-progress {
    border: 0;
    background: conic-gradient(#3b82f6 var(--private-progress), #e4edf9 0);
    position: relative;
    color: #2477da;
    font-size: 9px;
    font-weight: 700;
}

.private-module .private-home-icon.is-progress::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #fff;
}

.private-module .private-home-icon.is-progress span {
    position: relative;
    z-index: 1;
}

.private-module .private-home-icon.is-done {
    color: #238653;
    border-color: #a8d9bd;
    background: #effaf3;
}

@media (max-width: 700px) {
    .private-module .private-home-name { gap: 8px; }
    .private-module .private-home-icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .private-module .private-name-col { min-width: 185px; }
}

/* =====================================================
   PRIVATNO — MOBILNI BOXOVI I KOMPAKTNI FILTER
   ===================================================== */
@media (max-width: 700px) {
    #pageContent.private-module .private-compact-header {
        padding: 10px;
        flex: 0 0 auto;
    }

    .private-module .private-compact-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .private-module .private-compact-main > select {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 32px;
    }

    .private-module .private-compact-main .private-tabs {
        display: flex;
        flex-wrap: nowrap;
        width: 100%;
        gap: 4px;
    }

    .private-module .private-compact-main .private-tabs button {
        flex: 1 1 0;
        min-width: 0;
        padding: 7px 3px;
        font-size: 10px;
        white-space: nowrap;
    }

    .private-module .private-compact-right,
    .private-module .private-header-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 7px;
    }

    .private-module .private-header-actions > button {
        width: auto;
        min-width: 0;
        flex: 1;
        padding: 8px 5px;
        font-size: 11px;
        background: #fff;
        color: #2277d2;
        border: 1px solid #91bdf2;
    }

    .private-module .private-compact-activities {
        padding: 10px;
        min-width: 0;
    }

    .private-module .private-table-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 4px;
        margin-bottom: 9px;
    }

    .private-module .private-view-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
    }

    .private-module .private-view-tabs button {
        padding: 7px 6px;
        font-size: 10px;
        white-space: nowrap;
    }

    .private-module .private-table-count {
        white-space: nowrap;
        font-size: 10px;
    }

    .private-module .private-table-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        max-height: none;
        min-width: 0;
    }

    .private-module .private-activities-table,
    .private-module .private-activities-table tbody,
    .private-module .private-activities-table tr[data-activity-row] {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .private-module .private-activities-table {
        border-collapse: separate;
        border-spacing: 0;
        white-space: normal;
    }

    .private-module .private-activities-table thead {
        display: none;
    }

    .private-module .private-activities-table tr[data-activity-row] {
        position: relative;
        margin-bottom: 8px;
        padding: 10px 10px 9px 13px;
        border: 1px solid #dce6f1;
        border-radius: 10px;
        background: #fff;
        overflow: visible;
    }

    .private-module .private-activities-table tr[data-activity-row]::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        border-radius: 10px 0 0 10px;
        background: #3989ed;
    }

    .private-module .private-activities-table tr.private-line-carried::before { background: #f59e0b; }
    .private-module .private-activities-table tr.private-line-late::before { background: #ef4444; }
    .private-module .private-activities-table tr.private-line-done::before { background: #22c55e; }
    .private-module .private-activities-table tr.private-line-carried { background: #fffaf0; }
    .private-module .private-activities-table tr.private-line-late { background: #fff5f5; }

    .private-module .private-activities-table tr[data-activity-row] > td {
        display: inline-block;
        width: auto;
        max-width: 100%;
        min-width: 0;
        padding: 2px 6px 2px 0;
        border: 0;
        font-size: 10px;
        vertical-align: baseline;
        white-space: normal;
    }

    .private-module .private-activities-table tr[data-activity-row] > td:first-child {
        display: block;
        width: 100%;
        padding: 0 0 5px;
    }

    .private-module .private-activities-table tr[data-activity-row] > td:first-child::before {
        display: none;
    }

    .private-module .private-home-name { align-items: center; gap: 9px; }
    .private-module .private-home-icon { flex-shrink: 0; }
    .private-module .private-name-col { min-width: 0; }
    .private-module .private-name-col strong { font-size: 11px; }
    .private-module .private-name-col .private-description { max-width: 100%; }

    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(2)::before { content: "Ponavljanje: "; color: #8294a8; }
    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(3)::before { content: "Datum: "; color: #8294a8; }
    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(4)::before { content: "Rok: "; color: #8294a8; }
    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(5)::before { content: "Kreirao: "; color: #8294a8; }

    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) {
        display: block;
        padding: 4px 0;
    }

    .private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        display: block;
        width: 100%;
        margin-top: 6px;
        padding: 8px 0 0;
        border-top: 1px solid #e5edf6;
    }

    .private-module .private-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }

    .private-module .private-activities-table tr.private-items-row:not([hidden]) {
        display: block;
        width: 100%;
        margin: -4px 0 8px;
        border: 1px solid #dce6f1;
        border-radius: 8px;
        background: #f8fbff;
    }

    .private-module .private-activities-table tr.private-items-row:not([hidden]) > td {
        display: block;
        width: 100%;
        padding: 9px;
    }

    .private-module [data-view-panel="archive"] .private-activities-table tr > td:nth-child(2)::before { content: "Kreirao: "; }
    .private-module [data-view-panel="archive"] .private-activities-table tr > td:nth-child(3)::before { content: none; }
}

/* =====================================================
   PRIVATNO - KOMPAKTNI MOBILNI BOXOVI
   ===================================================== */
@media (max-width: 700px) {
    .private-module .private-table-topbar {
        display: flex;
        align-items: center;
        gap: 5px;
        flex-wrap: nowrap;
        padding-bottom: 7px;
    }

    .private-module .private-table-topbar .private-view-tabs {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        flex-wrap: nowrap;
        gap: 4px;
    }

    .private-module .private-view-tabs button {
        min-height: 29px !important;
        padding: 5px 7px !important;
        font-size: 9px;
        white-space: nowrap;
    }

    .private-module .private-table-count {
        flex: 0 0 auto;
        font-size: 9px;
        white-space: nowrap;
    }

    .private-module .private-activities-table tr[data-activity-row] {
        margin-bottom: 6px;
        padding: 8px 9px 7px 11px;
        border-radius: 9px;
    }

    .private-module .private-activities-table tr[data-activity-row] > td {
        padding: 1px 5px 1px 0;
        font-size: 9px;
        line-height: 1.35;
    }

    .private-module .private-activities-table tr[data-activity-row] > td:first-child {
        padding-bottom: 3px;
    }

    .private-module .private-home-name { gap: 7px; }
    .private-module .private-home-icon { transform: scale(.86); transform-origin: center; }
    .private-module .private-name-col strong { font-size: 10px; }
    .private-module .private-name-col small { line-height: 1.25; }

    .private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) {
        display: inline-block;
        padding: 2px 0;
    }

    .private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        margin-top: 3px;
        padding-top: 5px;
    }

    .private-module .private-row-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .private-module .private-row-actions > button,
    .private-module .private-row-actions > details {
        flex: 0 0 auto;
        min-width: 0;
    }

    .private-module .private-row-actions > button {
        padding: 5px 8px;
        min-height: 28px;
        font-size: 10px;
        white-space: nowrap;
    }

    .private-module .private-row-actions .private-more summary {
        min-height: 28px;
        padding: 4px 8px;
    }
}

/* =====================================================
   PRIVATNO - DESKTOP LISTA DO DNA EKRANA
   ===================================================== */
@media (min-width: 701px) {
    #pageContent.private-module {
        height: calc(100dvh - 90px);
        min-height: 420px;
        overflow: hidden;
    }

    #pageContent.private-module > .private-compact-header {
        flex: 0 0 auto;
    }

    #pageContent.private-module > #privateContent {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #pageContent.private-module #privateActivitiesRoot {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #pageContent.private-module .private-compact-activities {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #pageContent.private-module .private-compact-activities > [data-view-panel]:not([hidden]) {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #pageContent.private-module .private-compact-activities > [data-view-panel]:not([hidden]) > .private-section {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
    }

    #pageContent.private-module .private-table-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow: auto;
    }
}


/* =====================================================
   PRIVATNO - ZAKLJUCAN RASPORED I PREGLEDNE KARTICE
   ===================================================== */
@media (max-width: 700px) {
    #pageContent.private-module {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 82px);
        min-height: 0;
        overflow: hidden;
    }

    #pageContent.private-module > .private-compact-header {
        flex: 0 0 auto;
        margin-bottom: 10px;
    }

    #pageContent.private-module > #privateContent,
    #pageContent.private-module #privateActivitiesRoot,
    #pageContent.private-module .private-compact-activities,
    #pageContent.private-module [data-view-panel]:not([hidden]),
    #pageContent.private-module [data-view-panel]:not([hidden]) > .private-section {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    #pageContent.private-module .private-compact-activities {
        overflow: hidden;
    }

    #pageContent.private-module .private-table-topbar {
        flex: 0 0 auto;
    }

    #pageContent.private-module .private-table-scroll {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 3px 8px;
        padding: 9px 10px 8px 13px;
        margin-bottom: 7px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding: 0;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:first-child,
    #pageContent.private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        grid-column: 1 / -1;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:first-child {
        padding-bottom: 4px;
    }

    #pageContent.private-module .private-home-name {
        align-items: center;
        gap: 7px;
    }

    #pageContent.private-module .private-name-col .private-carried-label {
        font-size: 9px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) {
        grid-column: 1 / -1;
        padding: 1px 0 0;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        margin-top: 3px;
        padding-top: 6px;
    }

    #pageContent.private-module .private-row-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }
}

@media (min-width: 701px) {
    #pageContent.private-module {
        display: flex;
        flex-direction: column;
    }
}

/* =====================================================
   PRIVATNO - MOBILNI STATUS U GORNJEM DESNOM UGLU
   ===================================================== */
@media (max-width: 700px) {
    #pageContent.private-module .private-activities-table tr[data-activity-row] {
        position: relative;
        row-gap: 2px;
        padding-top: 9px;
        padding-bottom: 7px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:first-child {
        padding-right: 92px;
        padding-bottom: 2px;
        min-height: 32px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) {
        position: absolute;
        top: 9px;
        right: 9px;
        width: auto;
        max-width: 88px;
        padding: 0;
        text-align: right;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) .private-status {
        display: inline-block;
        margin: 0;
        white-space: nowrap;
        font-size: 9px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        margin-top: 1px;
        padding-top: 5px;
    }
}

/* =====================================================
   PRIVATNO - MOBILNI STATUS U REDU SA AKCIJAMA
   ===================================================== */
@media (max-width: 700px) {
    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:first-child {
        padding-right: 0;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td:nth-child(6) {
        position: absolute;
        top: auto;
        right: 10px;
        bottom: 9px;
        width: auto;
        max-width: 85px;
        padding: 0;
        z-index: 1;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] > td.private-actions-cell {
        padding-right: 85px;
        min-height: 34px;
    }

    #pageContent.private-module .private-activities-table tr[data-activity-row] .private-expand {
        display: inline-flex;
        width: auto;
        max-width: 100%;
        align-items: center;
        white-space: nowrap;
        padding: 4px 7px;
        font-size: 9px;
        line-height: 1.2;
    }

    #pageContent.private-module .private-row-actions {
        gap: 4px;
    }

    #pageContent.private-module .private-row-actions > button {
        padding: 4px 6px;
        font-size: 9px;
    }
}

/* =====================================================
   IMENIK - KATEGORIJE I MOBILNI KONTAKTI
   ===================================================== */

.imenik-module .imenik-category-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 0;
    margin-top: 10px;
    border-top: 1px solid #e6edf5;
}

.imenik-module .imenik-category-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #d4e1f0;
    border-radius: 8px;
    background: #fff;
    color: #28557f;
    cursor: pointer;
    font-size: 11px;
}

.imenik-module .imenik-category-actions button.active {
    background: #eaf3ff;
    border-color: #8cbcff;
}

.imenik-module #imenikMobileCategories,
.imenik-module .imenik-mobile-list {
    display: none;
}

@media (max-width: 700px) {
    .imenik-module {
        min-width: 0;
    }

    .imenik-module .imenik-top,
    .imenik-module .imenik-toolbar {
        padding: 10px;
    }

    .imenik-module .imenik-top-actions #imenikNew {
        background: #fff;
        color: #247bda;
        border: 1px solid #7eb5ff;
    }

    .imenik-module .imenik-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .imenik-module #imenikSearch {
        flex: 1 1 100%;
        min-width: 0;
    }

    .imenik-module #imenikOrgFilter {
        flex: 1 1 auto;
        min-width: 0;
    }

    .imenik-module #imenikMobileCategories {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .imenik-module .imenik-layout {
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 8px;
    }

    .imenik-module .imenik-categories {
        display: none;
        order: -1;
    }

    .imenik-module.imenik-categories-open .imenik-categories {
        display: block;
    }

    .imenik-module .imenik-list-panel {
        min-width: 0;
    }

    .imenik-module #imenikRows.imenik-table-wrap > table {
        display: none;
    }

    .imenik-module .imenik-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .imenik-module .imenik-mobile-contact {
        padding: 10px;
        border: 1px solid #dfe8f3;
        border-left: 3px solid #3489e8;
        border-radius: 9px;
        background: #fff;
    }

    .imenik-module .imenik-mobile-contact.selected {
        background: #f0f7ff;
    }

    .imenik-module .imenik-mobile-contact-main {
        display: flex;
        flex-direction: column;
        gap: 3px;
        width: 100%;
        padding: 0 0 8px;
        border: 0;
        background: transparent;
        text-align: left;
        color: #203f62;
    }

    .imenik-module .imenik-mobile-contact-main strong {
        font-size: 12px;
    }

    .imenik-module .imenik-mobile-contact-main small {
        font-size: 10px;
        color: #73869b;
    }

    .imenik-module .imenik-mobile-numbers {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
        align-items: end;
        gap: 8px;
        border-top: 1px solid #edf1f7;
        padding-top: 8px;
    }

    .imenik-module .imenik-mobile-numbers > div {
        min-width: 0;
    }

    .imenik-module .imenik-mobile-numbers small {
        display: block;
        margin-bottom: 3px;
        font-size: 9px;
        color: #7a8da2;
    }

    .imenik-module .imenik-mobile-numbers a {
        font-size: 11px;
        font-weight: 700;
        color: #237bd8;
        text-decoration: none;
        overflow-wrap: anywhere;
    }

    .imenik-module .imenik-details {
        display: none;
    }
}

/* =====================================================
   IMENIK - KOMPAKTNI MOBILNI FILTERI
   ===================================================== */

.imenik-module #imenikMobileFilters {
    display: none;
}

@media (max-width: 700px) {
    .imenik-module .imenik-top {
        padding: 8px 9px;
    }

    .imenik-module .imenik-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1px;
    }

    .imenik-module .imenik-tabs::-webkit-scrollbar {
        display: none;
    }

    .imenik-module .imenik-tabs button {
        flex: 0 0 auto;
        width: auto;
        min-height: 30px;
        padding: 6px 9px;
        white-space: nowrap;
        font-size: 10px;
    }

    .imenik-module .imenik-top-actions {
        margin-top: 6px;
    }

    .imenik-module .imenik-top-actions #imenikNew {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .imenik-module .imenik-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 8px 9px;
    }

    .imenik-module #imenikSearch {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        height: 34px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .imenik-module #imenikMobileFilters,
    .imenik-module #imenikMobileCategories {
        display: inline-flex;
        flex: 0 0 34px;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .imenik-module #imenikList,
    .imenik-module #imenikGrid {
        display: none;
    }

    .imenik-module #imenikOrgFilter {
        display: none;
        order: 5;
        flex: 1 1 100%;
        width: 100%;
        height: 34px;
        margin: 0;
    }

    .imenik-module.imenik-mobile-filters-open #imenikOrgFilter:not([hidden]) {
        display: block;
    }

    .imenik-module .imenik-list-head {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .imenik-module .imenik-list-panel {
        padding: 8px;
    }
}


/* =====================================================
   LOGIN - ANASOF MODERNI PRIKAZ
   Samo login stranica; ostali moduli ostaju netaknuti.
   ===================================================== */

body.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    padding: 24px 16px;
    background:
        radial-gradient(ellipse at 16% 20%, rgba(181, 210, 251, .48), transparent 38%),
        radial-gradient(ellipse at 88% 80%, rgba(144, 194, 253, .40), transparent 40%),
        linear-gradient(145deg, #f7faff 0%, #e8f1ff 54%, #dbeaff 100%);
}

body.login-page::before,
body.login-page::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

body.login-page::before {
    width: 75vw;
    height: 75vw;
    min-width: 500px;
    min-height: 500px;
    left: -32vw;
    bottom: -54vw;
    border: 85px solid rgba(255, 255, 255, .35);
}

body.login-page::after {
    width: 62vw;
    height: 62vw;
    min-width: 460px;
    min-height: 460px;
    right: -30vw;
    top: -46vw;
    border: 75px solid rgba(255, 255, 255, .34);
}

.login-page .login-decor {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.login-page .login-decor-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 21px;
    background: rgba(255, 255, 255, .40);
    box-shadow: 0 14px 40px rgba(65, 119, 195, .08);
    transform: rotate(-13deg);
}

.login-page .login-decor-icon svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: #78a5dc;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-page .login-decor-tasks { left: 13%; top: 20%; }
.login-page .login-decor-chat { right: 13%; top: 22%; transform: rotate(13deg); }
.login-page .login-decor-contacts { left: 11%; bottom: 17%; transform: rotate(10deg); }
.login-page .login-decor-private { right: 12%; bottom: 16%; }

.login-page .login-container {
    position: relative;
    width: 100%;
    max-width: 352px;
    padding: 24px 28px 21px;
    border: 1px solid rgba(218, 230, 246, .95);
    border-radius: 19px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 55px rgba(44, 88, 153, .11);
}

.login-page .login-brand { margin-bottom: 21px; }

.login-page .brand-logo {
    width: 64px;
    height: 55px;
    margin: 0 auto 5px;
    border-radius: 0;
    background: transparent;
}

.login-page .brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-page .login-brand h1 {
    font-size: 23px;
    color: #172d4a;
}

.login-page .login-brand p { margin-top: 3px; font-size: 11px; }
.login-page .login-form { gap: 12px; }
.login-page .form-group { gap: 6px; }
.login-page .form-group label { font-size: 11px; color: #253a55; }

.login-page .form-group input {
    min-height: 39px;
    padding: 9px 11px;
    border-color: #d3dfed;
    border-radius: 9px;
    font-size: 12px;
}

.login-page .form-group input:focus {
    border-color: #2b86e6;
    box-shadow: 0 0 0 3px rgba(43, 134, 230, .12);
}

.login-page .primary-button {
    min-height: 40px;
    margin-top: 2px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #2885e5;
    font-size: 12px;
}

.login-page .primary-button:hover { background: #176fc9; }
.login-page .login-register { margin-top: 15px; }
.login-page .login-divider { margin-bottom: 12px; }
.login-page .login-register p { margin-bottom: 10px; }

.login-page .register-button {
    min-height: 37px;
    margin-top: 7px;
    padding: 9px 10px;
    border-color: #2b86e6;
    border-radius: 9px;
    color: #2276cc;
    font-size: 11px;
}

.login-page .register-button:hover {
    background: #eef6ff;
    border-color: #1b70ca;
    color: #1b70ca;
}

.login-page .register-company-button {
    border-color: #8daac9;
    color: #335c82;
}

.login-page .login-link-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
    vertical-align: -1px;
}

.login-page .login-footer { margin-top: 17px; }

@media (max-width: 600px) {
    body.login-page { padding: 15px; }
    .login-page .login-container { max-width: 360px; padding: 23px 22px 19px; }
    .login-page .login-decor-icon { width: 50px; height: 50px; opacity: .42; }
    .login-page .login-decor-icon svg { width: 26px; height: 26px; }
    .login-page .login-decor-tasks { left: -20px; top: 10%; }
    .login-page .login-decor-chat { right: -20px; top: 12%; }
    .login-page .login-decor-contacts { left: -18px; bottom: 9%; }
    .login-page .login-decor-private { right: -18px; bottom: 10%; }
}

@media (max-height: 620px) {
    body.login-page { align-items: flex-start; }
}


/* =====================================================
   LOGIN - REFERENTNI DIZAJN DESKTOP / MOBILNI
   ===================================================== */

body.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 36px 20px;
    overflow-x: hidden;
    background: #eaf2ff;
    background-image: url('../assets/login-background.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-page .login-decor { z-index: -1; }

.login-page .login-decor-icon {
    width: clamp(66px, 10vw, 116px);
    height: clamp(66px, 10vw, 116px);
    border: 3px solid rgba(255, 255, 255, .83);
    border-radius: 27%;
    background: rgba(255, 255, 255, .24);
    box-shadow: 0 15px 36px rgba(53, 104, 177, .06);
}

.login-page .login-decor-icon svg {
    width: 52%;
    height: 52%;
    stroke: #689bd3;
    stroke-width: 1.9;
}

.login-page .login-decor-tasks { left: 8.5%; top: 17%; }
.login-page .login-decor-chat { right: 9%; top: 16%; }
.login-page .login-decor-contacts { left: 7%; bottom: 31%; }
.login-page .login-decor-private { display: none; }
.login-page .login-decor-folder { left: 9%; top: 40%; }
.login-page .login-decor-private2 { right: 8%; top: 54%; transform: rotate(44deg); }

.login-page .login-container {
    width: min(100%, 550px);
    max-width: 550px;
    padding: 43px 44px 35px;
    border: 1px solid rgba(255, 255, 255, .94);
    border-radius: 31px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 65px rgba(40, 84, 152, .13);
    backdrop-filter: blur(8px);
}

.login-page .login-brand { margin-bottom: 41px; }
.login-page .brand-logo { width: 128px; height: 87px; margin: 0 auto 8px; }
.login-page .login-brand h1 { font-size: 32px; font-weight: 750; letter-spacing: -.8px; }
.login-page .login-brand p { font-size: 15px; margin-top: 4px; }
.login-page .login-form { gap: 24px; }
.login-page .form-group { gap: 9px; }
.login-page .form-group label { font-size: 14px; font-weight: 650; color: #182b46; }

.login-page .login-input-wrap { position: relative; }
.login-page .login-input-wrap input {
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 13px 52px 13px 60px;
    border: 1px solid #bdcde1;
    border-radius: 14px;
    background: #fff;
    color: #253a55;
    font-size: 16px;
}

.login-page .login-input-wrap input::placeholder { color: #8590a0; }
.login-page .login-field-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    fill: none;
    stroke: #5b697c;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.login-page .login-password-toggle {
    position: absolute;
    right: 11px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #5b697c;
    cursor: pointer;
}

.login-page .login-password-toggle svg,
.login-page .login-link-svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-page .primary-button {
    min-height: 56px;
    margin-top: 5px;
    border-radius: 13px;
    background: linear-gradient(110deg, #1680db, #1776d2);
    font-size: 18px;
    font-weight: 700;
}

.login-page .login-register { margin-top: 34px; }
.login-page .login-divider { margin-bottom: 25px; font-size: 13px; }
.login-page .login-register p { margin-bottom: 18px; font-size: 13px; }
.login-page .register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 55px;
    padding: 12px;
    margin-top: 11px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 650;
}
.login-page .login-link-svg { width: 23px; height: 23px; flex-shrink: 0; }
.login-page .login-footer { margin-top: 30px; font-size: 12px; }

@media (max-width: 700px) {
    body.login-page { padding: 22px 14px; background-position: 52% center; }
    .login-page .login-container { max-width: 430px; padding: 28px 25px 25px; border-radius: 24px; }
    .login-page .login-brand { margin-bottom: 27px; }
    .login-page .brand-logo { width: 105px; height: 75px; }
    .login-page .login-brand h1 { font-size: 27px; }
    .login-page .login-brand p { font-size: 13px; }
    .login-page .login-form { gap: 17px; }
    .login-page .form-group label { font-size: 12px; }
    .login-page .login-input-wrap input { height: 49px; min-height: 49px; font-size: 14px; }
    .login-page .primary-button { min-height: 49px; font-size: 15px; }
    .login-page .login-register { margin-top: 24px; }
    .login-page .login-divider { margin-bottom: 17px; }
    .login-page .login-register p { margin-bottom: 12px; font-size: 11px; }
    .login-page .register-button { min-height: 46px; font-size: 13px; margin-top: 8px; }
    .login-page .login-footer { margin-top: 22px; font-size: 10px; }
    .login-page .login-decor-icon { opacity: .35; }
    .login-page .login-decor-tasks { left: -36px; top: 10%; }
    .login-page .login-decor-chat { right: -36px; top: 13%; }
    .login-page .login-decor-contacts { left: -40px; bottom: 9%; }
    .login-page .login-decor-folder { left: -35px; top: 48%; }
    .login-page .login-decor-private2 { right: -40px; top: 65%; }
}

@media (max-width: 370px) {
    .login-page .login-container { padding: 23px 17px; }
    .login-page .login-input-wrap input { padding-left: 48px; }
    .login-page .login-field-icon { left: 14px; }
}

/* =====================================================
   AUTH - KOMPAKTNI BOXOVI I JACE BOJE POZADINE
   Postojeci SVG i dekoracije ostaju nepromijenjeni.
   ===================================================== */

body.login-page,
body.register-page,
body.register-user-body .register-user-page {
    background-color: #c4ddff;
    background-image:
        linear-gradient(130deg, rgba(70, 145, 241, .24), rgba(173, 211, 255, .08) 45%, rgba(40, 123, 227, .22)),
        url('../assets/login-background.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.login-page .login-container {
    max-width: 398px;
    padding: 23px 28px 21px;
    border-radius: 22px;
}

.login-page .login-brand { margin-bottom: 18px; }
.login-page .brand-logo { width: 86px; height: 60px; margin-bottom: 3px; }
.login-page .login-brand h1 { font-size: 26px; }
.login-page .login-brand p { font-size: 12px; }
.login-page .login-form { gap: 13px; }
.login-page .form-group { gap: 5px; }
.login-page .form-group label { font-size: 12px; }
.login-page .login-input-wrap input {
    height: 43px;
    min-height: 43px;
    padding: 9px 42px 9px 43px;
    font-size: 13px;
    border-radius: 10px;
}
.login-page .login-field-icon { left: 13px; width: 19px; height: 19px; }
.login-page .login-password-toggle { width: 34px; height: 34px; right: 5px; }
.login-page .primary-button {
    min-height: 43px;
    margin-top: 1px;
    border-radius: 10px;
    font-size: 14px;
}
.login-page .login-register { margin-top: 17px; }
.login-page .login-divider { margin-bottom: 12px; font-size: 11px; }
.login-page .login-register p { margin-bottom: 8px; font-size: 11px; }
.login-page .register-button {
    min-height: 40px;
    padding: 8px 10px;
    margin-top: 7px;
    border-radius: 9px;
    font-size: 12px;
}
.login-page .login-link-svg { width: 18px; height: 18px; }
.login-page .login-footer { margin-top: 16px; font-size: 10px; }

/* Registracija kompanije */
body.register-page {
    min-height: 100dvh;
    padding: 24px 15px;
}
.register-page .register-container {
    max-width: 550px;
    padding: 25px 28px;
    border-radius: 20px;
}
.register-page .register-header { margin-bottom: 19px; }
.register-page .register-header .brand-logo {
    width: 82px;
    height: 58px;
    margin: 0 auto 5px;
}
.register-page .register-header h1 { font-size: 22px; margin: 6px 0 4px; }
.register-page .register-header p { font-size: 11px; }
.register-page .form-section { margin-bottom: 18px; }
.register-page .form-section h2 { margin-bottom: 10px; padding-bottom: 7px; }
.register-page .form-grid { gap: 10px 12px; }
.register-page .form-group { gap: 4px; }
.register-page .form-group input { padding: 9px 10px; font-size: 12px; }
.register-page .register-login { margin-top: 12px; }

/* Registracija korisnika */
body.register-user-body .register-user-page {
    min-height: 100dvh;
    padding: 20px 14px;
}
.register-user-body .register-user-card {
    max-width: 398px;
    padding: 24px 28px;
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(30, 81, 153, .15);
}
.register-user-body .register-user-brand { text-align: center; margin-bottom: 12px; }
.register-user-body .register-user-brand .brand-logo {
    width: 82px;
    height: 57px;
    margin: 0 auto 6px;
}
.register-user-body .register-user-card h2 { margin: 0 0 5px; font-size: 20px; }
.register-user-body .register-user-card > p { text-align: center; font-size: 11px; }
.register-user-body .register-user-card label { margin-top: 9px; margin-bottom: 4px; }
.register-user-body .register-user-card input { padding: 10px; border-radius: 8px; }
.register-user-body .register-user-card button {
    margin-top: 11px;
    padding: 10px;
    border-radius: 9px;
}
.register-user-body .register-user-card #showResendBtn {
    background: transparent;
    color: #2877c7;
    border: 1px solid #c4d8f1;
}
.register-user-body .register-user-card #resendActivationForm[hidden] { display: none; }

/* Zajednicki logo */
.register-page .brand-logo,
.register-user-body .brand-logo {
    background: transparent;
    border-radius: 0;
}
.register-page .brand-logo img,
.register-user-body .brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 650px) {
    body.login-page { padding: 12px; }
    .login-page .login-container { max-width: 360px; padding: 19px 19px 17px; border-radius: 19px; }
    .login-page .login-brand { margin-bottom: 14px; }
    .login-page .brand-logo { width: 75px; height: 52px; }
    .login-page .login-brand h1 { font-size: 23px; }
    .login-page .login-form { gap: 11px; }
    .login-page .login-register { margin-top: 14px; }
    .login-page .login-footer { margin-top: 12px; }

    body.register-page { padding: 12px; }
    .register-page .register-container { padding: 19px 17px; border-radius: 18px; }
    .register-page .form-grid { grid-template-columns: 1fr; gap: 9px; }
    .register-page .full-width { grid-column: auto; }

    .register-user-body .register-user-card { padding: 20px 18px; border-radius: 18px; }
}

@media (max-height: 680px) {
    body.login-page { align-items: flex-start; }
}


/* =====================================================
   AUTH V2 - MANJI MOBILNI PRIKAZ I ISTE BOJE
   ===================================================== */

/* Jedinstvena pozadina na sve tri stranice */
body.login-page,
body.register-page,
body.register-user-body,
body.register-user-body .register-user-page {
    background-color: #b7d4fc;
    background-image:
        linear-gradient(135deg, rgba(61, 139, 235, .24), rgba(210, 231, 255, .07) 46%, rgba(36, 117, 225, .25)),
        url('../assets/login-background.svg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.register-page .primary-button,
.register-user-body .register-user-card #registerUserBtn,
.register-user-body .register-user-card #resendUserBtn,
.register-user-body .register-user-card #resendActivationBtn {
    background: #197bd6;
    color: #ffffff;
    border: none;
}

.register-page .form-section h2,
.register-page .register-login a,
.register-user-body .register-user-card a {
    color: #197bd6;
}

.register-page .form-group input:focus,
.register-user-body .register-user-card input:focus {
    border-color: #197bd6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(25, 123, 214, .12);
}

/* Mobilni login: uzi i nizi, sa vise vidljive pozadine */
@media (max-width: 650px) {
    body.login-page {
        min-height: 100dvh;
        padding: 16px 12px;
        align-items: center;
    }

    .login-page .login-container {
        width: min(100%, 318px);
        max-width: 318px;
        padding: 16px 18px 14px;
        border-radius: 19px;
    }

    .login-page .login-brand { margin-bottom: 11px; }
    .login-page .brand-logo { width: 66px; height: 44px; margin-bottom: 2px; }
    .login-page .login-brand h1 { font-size: 21px; line-height: 1.15; }
    .login-page .login-brand p { font-size: 10px; margin-top: 3px; }
    .login-page .login-form { gap: 9px; }
    .login-page .form-group { gap: 4px; }
    .login-page .form-group label { font-size: 11px; }
    .login-page .login-input-wrap input {
        height: 39px;
        min-height: 39px;
        padding: 8px 35px 8px 37px;
        font-size: 12px;
        border-radius: 9px;
    }
    .login-page .login-field-icon { left: 11px; width: 17px; height: 17px; }
    .login-page .login-password-toggle { width: 30px; height: 30px; }
    .login-page .primary-button {
        min-height: 39px;
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 9px;
    }
    .login-page .login-register { margin-top: 11px; }
    .login-page .login-divider { margin-bottom: 8px; font-size: 10px; }
    .login-page .login-register p { margin-bottom: 6px; font-size: 10px; }
    .login-page .register-button {
        min-height: 36px;
        margin-top: 6px;
        padding: 7px 9px;
        font-size: 11px;
        border-radius: 8px;
    }
    .login-page .login-link-svg { width: 16px; height: 16px; }
    .login-page .login-footer { margin-top: 10px; font-size: 9px; }

    .register-page .register-container {
        width: min(100%, 390px);
        padding: 18px 17px;
        border-radius: 19px;
    }

    .register-user-body .register-user-card {
        width: min(100%, 340px);
        padding: 18px 18px;
        border-radius: 19px;
    }
}

@media (max-width: 360px) {
    .login-page .login-container { max-width: 300px; padding: 14px 15px 12px; }
    .login-page .login-brand { margin-bottom: 9px; }
    .login-page .login-form { gap: 8px; }
}

@media (max-width: 650px) and (max-height: 620px) {
    body.login-page { align-items: flex-start; }
}

/* =====================================================
   PWA - PONUDA ZA INSTALACIJU
   ===================================================== */
.anasof-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px;
    background: rgba(19, 43, 83, .35);
    backdrop-filter: blur(3px);
}

.anasof-install-panel {
    position: relative;
    width: min(100%, 420px);
    padding: 24px 20px 19px;
    border: 1px solid #dce8f8;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(26, 74, 137, .23);
}

.anasof-install-close {
    position: absolute;
    top: 7px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #637c9d;
    font-size: 27px;
    cursor: pointer;
}

.anasof-install-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-right: 12px;
}

.anasof-install-header img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid #edf1f8;
    border-radius: 14px;
}

.anasof-install-header h2 {
    margin: 0 0 5px;
    color: #172f50;
    font-size: 18px;
}

.anasof-install-header p {
    margin: 0;
    color: #60738c;
    font-size: 12px;
    line-height: 1.5;
}

.anasof-install-help {
    margin-top: 14px;
    color: #47658b;
    font-size: 12px;
    line-height: 1.55;
}

.anasof-install-actions {
    display: flex;
    gap: 9px;
    margin-top: 19px;
}

.anasof-install-actions button {
    min-height: 42px;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.anasof-install-confirm {
    flex: 1.5;
    border: 1px solid #177bd8;
    background: #177bd8;
    color: white;
}

.anasof-install-later {
    flex: 1;
    border: 1px solid #b5c9e5;
    background: white;
    color: #315b87;
}

@media (max-width: 420px) {
    .anasof-install-overlay { padding: 12px; }
    .anasof-install-panel { padding: 22px 16px 16px; }
    .anasof-install-header h2 { font-size: 16px; }
    .anasof-install-header img { width: 50px; height: 50px; flex-basis: 50px; }
}


/* =====================================================
   MOBILNI POZDRAV — POMJERANJE TEKSTA ULIJEVO
   ===================================================== */
@media (max-width: 550px) {
    #dashboardContent .dashboard-welcome.ad-welcome-compact {
        padding-left: 0 !important;
        margin-left: -8px !important;
    }
}
