/* =====================================================
   ANASOF TASK — MODERNIZACIJA POČETNE I MENIJA
   Učitati poslije css/style.css
   ===================================================== */

/* ===== POČETNA: AKTIVNOSTI ===== */
.ad-home-list { display:flex; flex-direction:column; gap:7px; }
.ad-home-list .ad-modern-activity { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:51px; padding:7px 12px 7px 16px; border:1px solid #e1e9f3; border-radius:11px; background:#f2f5f9; box-sizing:border-box; }
.ad-modern-activity-main { min-width:0; display:flex; flex-direction:column; gap:3px; }
.ad-modern-activity-main strong { color:#102c58; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-modern-activity-main small { color:#77869a; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-modern-activity-side { flex:0 0 104px; display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.ad-modern-activity-side time { color:#526987; font-size:10px; white-space:nowrap; }
.ad-modern-status { display:inline-flex; justify-content:center; align-items:center; min-width:76px; padding:3px 8px; border-radius:999px; font-size:10px; font-weight:700; }
.ad-modern-status--transferred { background:#ffe49a; color:#8b5900; }
.ad-modern-status--active { background:#2684e8; color:#fff; }

/* ===== POČETNA: MOJI ZADACI ===== */
.ad-modern-task-list { display:flex; flex-direction:column; gap:7px; overflow-y:auto; min-height:0; }
.ad-modern-task { display:grid; grid-template-columns:54px minmax(140px,2fr) minmax(115px,1.2fr) 56px 78px 95px; align-items:center; gap:12px; min-height:56px; padding:7px 13px; border:1px solid #e1e9f3; border-radius:11px; background:#f2f5f9; cursor:pointer; box-sizing:border-box; }
.ad-modern-task:hover,.ad-modern-activity[role="button"]:hover { background:#eaf2fd; }
.ad-modern-task:focus-visible,.ad-modern-activity:focus-visible { outline:2px solid #2684e8; outline-offset:2px; }
.ad-modern-task-number { color:#2168bc; font-size:12px; font-weight:700; }
.ad-modern-task-title,.ad-modern-task-owner,.ad-modern-task-deadline { min-width:0; display:flex; flex-direction:column; gap:4px; }
.ad-modern-task-title strong { color:#102c58; font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-modern-task-title small,.ad-modern-task-owner small,.ad-modern-task-deadline small { color:#7b8ba2; font-size:10px; }
.ad-modern-task-owner strong,.ad-modern-task-deadline strong { color:#2168bc; font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ad-modern-task-progress { display:flex; justify-content:center; }
.ad-modern-progress-ring { display:grid; place-items:center; width:39px; height:39px; border-radius:50%; background:conic-gradient(#2585ec var(--progress-angle),#dce5f0 0); }
.ad-modern-progress-ring > span { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#f2f5f9; color:#174b89; font-size:10px; font-weight:700; }
.ad-modern-task .at-status { justify-self:start; }
@media (max-width:1050px) { .ad-modern-task { grid-template-columns:40px minmax(100px,1fr) minmax(90px,1fr) 46px 72px 80px; gap:7px; padding:7px; } }
@media (max-width:700px) { .ad-modern-task { grid-template-columns:40px 1fr 48px; } .ad-modern-task-owner,.ad-modern-task-deadline { grid-column:2; } .ad-modern-task .at-status { grid-column:3; grid-row:2; } .ad-modern-task-progress { grid-column:3; grid-row:1; } }

/* ===== LIJEVI MENI ===== */
.sidebar { display:flex; flex-direction:column; height:100dvh; overflow:hidden; }
.sidebar-brand,.sidebar-company,.sidebar-user { flex-shrink:0; }
.sidebar .sidebar-nav { flex:1 1 auto; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.sidebar .sidebar-link { flex-shrink:0; font-size:14px; font-weight:500; }
.sidebar .sidebar-icon { font-size:18px; width:22px; flex-shrink:0; }
.sidebar .sidebar-submenu:not([hidden]) { display:flex; flex-direction:column; min-height:0; overflow-y:auto; overflow-x:hidden; scrollbar-width:thin; scrollbar-color:#6798c6 transparent; }
.sidebar .sidebar-submenu[hidden] { display:none !important; }
.sidebar .sidebar-submenu .sidebar-link { font-size:12px; line-height:1.3; }
.sidebar .sidebar-user { margin-top:auto; }


/* =====================================================
   USKLAĐIVANJE SA POSTOJEĆIM STYLE.CSS
   Samo početna stranica i lijeva navigacija
   ===================================================== */

/* ===== DNEVNE I PRIVATNE AKTIVNOSTI ===== */
#dashboardContent .ad-home-list .ad-modern-activity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 51px;
    padding: 8px 12px 8px 16px !important;
    border: 1px solid #e1e9f3;
    border-radius: 10px;
    background: #f2f5f9;
}

#dashboardContent .ad-home-list .ad-modern-activity:nth-child(even) {
    background: #eef3fa !important;
}

#dashboardContent .ad-home-list .ad-modern-activity::before {
    top: 8px;
    bottom: 8px;
    border-radius: 5px;
}

#dashboardContent .ad-home-list .ad-modern-activity:hover {
    background: #eaf2fd !important;
}

#dashboardContent .ad-modern-activity-side time {
    display: block;
    font-size: 10px;
}

/* ===== MOJI ZADACI ===== */
#dashboardContent .ad-modern-task-list {
    min-height: 0;
    overflow-y: auto;
}

#dashboardContent .ad-modern-task {
    border: 1px solid #e1e9f3;
    border-radius: 10px;
    background: #f2f5f9;
}

#dashboardContent .ad-modern-task:nth-child(even) {
    background: #eef3fa;
}

#dashboardContent .ad-modern-task:hover {
    background: #eaf2fd;
}

/* ===== NAVIGACIJA ===== */
.sidebar .sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.sidebar .sidebar-submenu:not([hidden]) {
    overflow-y: auto;
    min-height: 0;
}

@media (max-width: 700px) {
    .sidebar .sidebar-link {
        font-size: 12px;
    }

    .sidebar .sidebar-icon {
        font-size: 19px;
    }
}

/* ===== MENI: FINALNO USKLAĐIVANJE ===== */
.sidebar { overflow: hidden !important; }
.sidebar .sidebar-nav { overflow: hidden !important; gap: 5px; }
.sidebar .sidebar-link { min-height: 43px; padding: 10px 11px; font-size: 14px !important; line-height: 1.25; font-weight: 550; border-radius: 9px; }
.sidebar .sidebar-icon { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex: 0 0 23px; }
.sidebar .sidebar-icon svg { display: block; width: 19px; height: 19px; }
.sidebar .sidebar-link.active { background: #2586dc; color: #fff; box-shadow: none; }
.sidebar .sidebar-nav-divider { flex: 0 0 1px; margin: 9px 7px; }
.sidebar .sidebar-submenu:not([hidden]) { flex: 1 1 auto; min-height: 0; max-height: 100%; overflow-y: auto !important; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(180,210,239,.5) transparent; }
.sidebar .sidebar-submenu::-webkit-scrollbar { width: 4px; }
.sidebar .sidebar-submenu::-webkit-scrollbar-thumb { background: rgba(180,210,239,.5); border-radius: 10px; }
.sidebar .sidebar-submenu .sidebar-link { min-height: 39px; font-size: 12.5px !important; padding: 8px 7px; gap: 7px; }
.sidebar .sidebar-submenu .sidebar-icon { width: 19px; height: 19px; flex-basis: 19px; }
.sidebar .sidebar-submenu .sidebar-icon svg { width: 16px; height: 16px; }
.sidebar .sidebar-user { flex-shrink: 0; margin-top: auto; }
.sidebar .sidebar-user-info strong { font-size: 12px; }
.sidebar .sidebar-user-info span { font-size: 10px; }
.sidebar .logout-button { font-size: 12px; }
@media (max-width: 700px) {
  .sidebar .sidebar-link { padding: 10px 7px; justify-content: center; }
  .sidebar .sidebar-submenu .sidebar-link { justify-content: center; }
}


/* =====================================================
   KRUŽNI INDIKATORI — DNEVNO I PRIVATNO
   ===================================================== */

#dashboardContent .ad-modern-activity .ad-activity-ring {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: #2563eb;
    background: #e7eef8;
    font-size: 12px;
    font-weight: 700;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--frequency {
    border: 3px solid #8eb8ef;
    background: #f7faff;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--progress {
    background: conic-gradient(#2563eb var(--activity-angle), #dbe5f1 0);
}

#dashboardContent .ad-modern-activity .ad-activity-ring--progress > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f7faff;
    font-size: 10px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--simple {
    color: #64748b;
    border: 2px solid #cbd5e1;
    background: #f7faff;
}

#dashboardContent .ad-modern-activity .ad-modern-activity-main {
    min-width: 0;
    flex: 1;
}

#dashboardContent .ad-modern-activity .ad-modern-activity-side {
    flex-shrink: 0;
}

/* ===== POČETNA: OBOJENE LINIJE UZ LIJEVU IVICU ===== */
#dashboardContent .ad-home-list .ad-modern-activity,
#dashboardContent .ad-modern-task-list .ad-modern-task {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line::before,
#dashboardContent .ad-modern-task-list .ad-modern-task.ad-status-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 10px 0 0 10px;
    background: #3b82f6;
    pointer-events: none;
}

#dashboardContent .ad-modern-activity.ad-status-line--active::before,
#dashboardContent .ad-modern-task.ad-status-line--active::before { background: #3b82f6; }
#dashboardContent .ad-modern-activity.ad-status-line--transferred::before,
#dashboardContent .ad-modern-task.ad-status-line--transferred::before { background: #f59e0b; }
#dashboardContent .ad-modern-activity.ad-status-line--overdue::before,
#dashboardContent .ad-modern-task.ad-status-line--overdue::before { background: #ef4444; }
#dashboardContent .ad-modern-activity.ad-status-line--completed::before,
#dashboardContent .ad-modern-task.ad-status-line--completed::before { background: #22c55e; }


/* =====================================================
   KOMPAKTNI DASHBOARD — VIŠE MJESTA ZA ZADATKE
   ===================================================== */

@media (min-width: 851px) {
    body.app-page:has(#dashboardContent:not([hidden])) .app-content {
        padding-top: 6px !important;
        padding-bottom: 9px !important;
    }

    #dashboardContent .dashboard-welcome.ad-welcome-compact {
        min-height: 56px !important;
        padding: 2px 8px 4px !important;
        margin-bottom: 3px !important;
    }

    #dashboardContent .dashboard-welcome.ad-welcome-compact h2 {
        font-size: 20px !important;
        line-height: 1.15;
    }

    #dashboardContent .dashboard-stats {
        margin-bottom: 7px !important;
        gap: 9px !important;
    }

    #dashboardContent .dashboard-stat-card {
        min-height: 64px !important;
        padding-top: 7px !important;
        padding-bottom: 6px !important;
    }

    #dashboardContent .dashboard-stat-icon {
        top: 9px;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {
        grid-template-rows: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
        gap: 9px !important;
    }
}

/* ===== MANJI KRUGOVI I NIŽI REDOVI ===== */
#dashboardContent .ad-home-list {
    gap: 5px;
}

#dashboardContent .ad-home-list .ad-modern-activity {
    min-height: 43px !important;
    padding: 5px 11px 5px 12px !important;
    gap: 9px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 10px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--frequency {
    border-width: 2px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--progress > span {
    width: 24px;
    height: 24px;
    font-size: 8px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--simple {
    border-width: 1.5px;
}

#dashboardContent .ad-modern-activity .ad-activity-ring--simple svg {
    width: 15px;
    height: 15px;
}

#dashboardContent .ad-modern-task-list {
    gap: 5px;
}

#dashboardContent .ad-modern-task-list .ad-modern-task {
    min-height: 45px !important;
    padding: 5px 12px !important;
    gap: 9px;
}

#dashboardContent .ad-modern-task-title,
#dashboardContent .ad-modern-task-owner,
#dashboardContent .ad-modern-task-deadline {
    gap: 2px;
}

#dashboardContent .ad-modern-task .ad-modern-progress-ring {
    width: 29px;
    height: 29px;
}

#dashboardContent .ad-modern-task .ad-modern-progress-ring > span {
    width: 23px;
    height: 23px;
    font-size: 8px;
}

/* ===== BOJA LIJEVE LINIJE: STATUS AKTIVNOSTI ===== */
#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line::before {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line--transferred::before {
    background: #f4b63d !important;
}

#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line--active::before {
    background: #2684e8 !important;
}

#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line--completed::before {
    background: #22a06b !important;
}

#dashboardContent .ad-home-list .ad-modern-activity.ad-status-line--overdue::before {
    background: #ef4444 !important;
}

/* ===== BOJA LIJEVE LINIJE: PRIORITET TIKETA ===== */
#dashboardContent .ad-modern-task-list .ad-modern-task.ad-status-line::before {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 4px;
    border-radius: 10px 0 0 10px;
}

#dashboardContent .ad-modern-task-list .ad-modern-task.ad-priority--nizak::before {
    background: #22a06b !important;
}

#dashboardContent .ad-modern-task-list .ad-modern-task.ad-priority--normalan::before {
    background: #3b82f6 !important;
}

#dashboardContent .ad-modern-task-list .ad-modern-task.ad-priority--visok::before {
    background: #f59e0b !important;
}

#dashboardContent .ad-modern-task-list .ad-modern-task.ad-priority--hitno::before {
    background: #ef4444 !important;
}

/* =====================================================
   MOBILNI DASHBOARD — 2026-11
   Kompaktne kartice i uredne akcije bez preklapanja
   ===================================================== */
@media (max-width: 850px) {
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    #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: 1 / -1 !important;
        width: 100%;
        min-width: 0;
    }

    #dashboardContent .dashboard-panel-header.ad-home-head {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        min-height: 42px;
    }

    #dashboardContent .dashboard-panel-header.ad-home-head > div {
        flex: 1 1 auto;
        min-width: 0;
    }

    #dashboardContent .dashboard-panel-header.ad-home-head h3 {
        margin: 0 0 3px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    #dashboardContent .dashboard-panel-header.ad-home-head p {
        margin: 0 !important;
        font-size: 9px !important;
        line-height: 1.3 !important;
    }

    #dashboardContent .dashboard-panel .ad-home-new {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 65px !important;
        max-width: 80px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 5px 10px !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1 !important;
        white-space: nowrap;
    }

    #dashboardContent .ad-private-wrap .ad-home-head {
        padding-right: 57px !important;
    }

    #dashboardContent .ad-private-toggle {
        top: 14px !important;
        right: 88px !important;
        height: 27px !important;
        min-width: 47px !important;
        padding: 4px 7px !important;
        font-size: 9px !important;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:nth-child(1),
    #dashboardContent .ad-private-wrap > .dashboard-panel,
    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {
        height: 238px !important;
        min-height: 238px !important;
        max-height: 238px !important;
    }

    #dashboardContent .ad-home-list .ad-modern-activity {
        min-height: 45px !important;
        padding: 6px 8px 6px 10px !important;
        gap: 7px !important;
    }

    #dashboardContent .ad-modern-activity-side {
        flex: 0 0 88px !important;
    }

    #dashboardContent .ad-modern-task-list .ad-modern-task {
        display: grid !important;
        grid-template-columns: 34px minmax(0, 1fr) 33px !important;
        gap: 3px 8px !important;
        padding: 7px 9px !important;
        min-height: 74px !important;
        align-items: center;
    }

    #dashboardContent .ad-modern-task-number { grid-column: 1; grid-row: 1; }
    #dashboardContent .ad-modern-task-title { grid-column: 2; grid-row: 1; }
    #dashboardContent .ad-modern-task-progress { grid-column: 3; grid-row: 1; }
    #dashboardContent .ad-modern-task-owner { grid-column: 2; grid-row: 2; }
    #dashboardContent .ad-modern-task .at-status { grid-column: 1; grid-row: 2; justify-self: start; }
    #dashboardContent .ad-modern-task-deadline { grid-column: 3; grid-row: 2; justify-self: end; text-align: right; }

    #dashboardContent .ad-modern-task-owner small,
    #dashboardContent .ad-modern-task-deadline small {
        font-size: 8px;
    }

    #dashboardContent .ad-modern-task-owner strong,
    #dashboardContent .ad-modern-task-deadline strong {
        font-size: 9px;
    }

    #dashboardContent .ad-modern-task .at-status {
        font-size: 8px !important;
        padding: 3px 5px !important;
    }
}

@media (max-width: 550px) {
    body.app-page .app-content {
        padding: 10px 9px 14px !important;
    }

    #dashboardContent .dashboard-welcome.ad-welcome-compact {
        padding: 9px 78px 9px 10px !important;
        min-height: 67px !important;
        margin-bottom: 8px !important;
    }

    #dashboardContent .dashboard-welcome.ad-welcome-compact h2 {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    #dashboardContent .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        margin-bottom: 9px !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card {
        min-height: 78px !important;
        padding: 8px 8px 7px 43px !important;
        border-radius: 10px !important;
    }

    #dashboardContent .dashboard-stat-icon {
        position: absolute !important;
        top: 10px !important;
        left: 8px !important;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
    }

    #dashboardContent .dashboard-stat-card > strong {
        font-size: 20px !important;
    }

    #dashboardContent .dashboard-stat-header > span:first-child {
        font-size: 9px !important;
    }

    #dashboardContent .dashboard-stat-card small {
        font-size: 8px !important;
    }

    #dashboardContent .dashboard-panel {
        padding: 10px !important;
    }

    #dashboardContent .ad-private-wrap .ad-home-head {
        padding-right: 0 !important;
    }

    #dashboardContent .ad-private-wrap .ad-home-head > div {
        padding-right: 48px;
    }

    #dashboardContent .ad-private-toggle {
        right: 79px !important;
        top: 11px !important;
    }

    #dashboardContent .ad-modern-activity .ad-activity-ring {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }

    #dashboardContent .ad-modern-task-list .ad-modern-task {
        grid-template-columns: 26px minmax(0, 1fr) 35px !important;
    }
}

/* =====================================================
   MOBILNI DASHBOARD — FIKSNI KPI, SKROL ISPOD NJIH
   ===================================================== */
@media (max-width: 850px) {
    body.app-page:has(#dashboardContent:not([hidden])) {
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.app-page:has(#dashboardContent:not([hidden])) .app-main {
        height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    body.app-page:has(#dashboardContent:not([hidden])) .app-content {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 5px !important;
    }

    #dashboardContent:not([hidden]) {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    #dashboardContent .dashboard-welcome.ad-welcome-compact {
        flex: 0 0 auto !important;
    }

    #dashboardContent .dashboard-stats {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 4px !important;
        flex: 0 0 auto !important;
        margin-bottom: 7px !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card {
        min-width: 0 !important;
        min-height: 63px !important;
        height: 63px !important;
        padding: 6px 4px 5px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1px !important;
    }

    #dashboardContent .dashboard-stat-header {
        width: 100% !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    #dashboardContent .dashboard-stat-header > span:first-child {
        font-size: 8px !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    #dashboardContent .dashboard-stat-icon {
        display: none !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card > strong {
        font-size: 19px !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card small {
        display: none !important;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {
        flex: 1 1 auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-rows: 238px !important;
        align-content: start !important;
        gap: 10px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding: 1px 2px 8px !important;
    }

    #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: 1 / -1 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: 238px !important;
        max-height: 238px !important;
    }
}

@media (max-width: 390px) {
    #dashboardContent .dashboard-stats .dashboard-stat-card {
        height: 60px !important;
        min-height: 60px !important;
    }

    #dashboardContent .dashboard-stat-header > span:first-child {
        font-size: 7px !important;
    }
}


/* =====================================================
   ROKOVI TIKETA — DESKTOP I MOBILNI
   ===================================================== */
#dashboardContent .ad-modern-task-list .ad-modern-task.ad-task-overdue {
    background: #fff0ef !important;
    border-color: #f5b7b2 !important;
}

#dashboardContent .ad-modern-task-list .ad-modern-task.ad-task-due-today {
    background: #fff7e8 !important;
    border-color: #f2d095 !important;
}

#dashboardContent .ad-modern-task.ad-task-overdue .ad-modern-task-deadline strong {
    color: #c62828 !important;
}

#dashboardContent .ad-modern-task.ad-task-due-today .ad-modern-task-deadline strong {
    color: #a7660b !important;
}

/* =====================================================
   MOBILNI — POZDRAV, KPI I RASPORED TIKETA
   ===================================================== */
@media (max-width: 850px) {
    #dashboardContent .dashboard-welcome.ad-welcome-compact {
        padding-left: 4px !important;
        padding-right: 100px !important;
        text-align: left !important;
    }

    #dashboardContent .ad-welcome-copy,
    #dashboardContent .ad-welcome-date,
    #dashboardContent .dashboard-welcome.ad-welcome-compact h2,
    #dashboardContent .dashboard-welcome.ad-welcome-compact p {
        text-align: left !important;
        margin-left: 0 !important;
        transform: none !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card {
        justify-content: center !important;
        gap: 3px !important;
    }

    #dashboardContent .dashboard-stats .dashboard-stat-card > strong {
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    #dashboardContent .ad-modern-task-list .ad-modern-task {
        grid-template-columns: 25px minmax(0, 1fr) 65px !important;
        grid-template-rows: auto auto auto !important;
        gap: 3px 6px !important;
        min-height: 83px !important;
        padding: 6px 8px !important;
        align-items: center !important;
    }

    #dashboardContent .ad-modern-task-number {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-modern-task-title {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-modern-task-progress {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-modern-task-owner {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    #dashboardContent .ad-modern-task .at-status {
        grid-column: 2 !important;
        grid-row: 3 !important;
        justify-self: start !important;
        max-width: 100% !important;
        position: static !important;
        margin: 0 !important;
    }

    #dashboardContent .ad-modern-task-deadline {
        grid-column: 3 !important;
        grid-row: 2 / 4 !important;
        justify-self: end !important;
        text-align: right !important;
        align-self: center !important;
    }
}


/* =====================================================
   ROK TIKETA — IKONICA UZ BROJ TIKETA
   ===================================================== */
#dashboardContent .ad-modern-task-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#dashboardContent .ad-task-deadline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

#dashboardContent .ad-task-deadline-icon svg {
    display: block;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#dashboardContent .ad-task-deadline-icon--overdue {
    color: #d32f2f;
}

#dashboardContent .ad-task-deadline-icon--today {
    color: #bd740b;
}

@media (max-width: 850px) {
    #dashboardContent .ad-modern-task-list .ad-modern-task {
        grid-template-columns: 44px minmax(0, 1fr) 65px !important;
    }

    #dashboardContent .ad-modern-task-number {
        gap: 3px;
        font-size: 10px;
    }

    #dashboardContent .ad-task-deadline-icon {
        width: 13px;
        height: 13px;
    }

    #dashboardContent .ad-task-deadline-icon svg {
        width: 13px;
        height: 13px;
    }
}


/* =====================================================
   ROK TIKETA — IKONICA UZ DESNU IVICU REDA
   ===================================================== */
#dashboardContent .ad-modern-task {
    position: relative;
}

#dashboardContent .ad-modern-task-number {
    display: block;
}

#dashboardContent .ad-modern-task > .ad-task-deadline-icon {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 1;
    pointer-events: none;
}

#dashboardContent .ad-modern-task-deadline {
    padding-right: 17px;
}

@media (max-width: 850px) {
    #dashboardContent .ad-modern-task > .ad-task-deadline-icon {
        right: 5px;
        top: 5px;
    }

    #dashboardContent .ad-modern-task-deadline {
        padding-right: 12px;
    }
}


/* =====================================================
   ROK TIKETA — FIKSNA KOLONA PORED BROJA
   Broj ostaje poravnat; ikonica ima vlastiti prostor.
   ===================================================== */
#dashboardContent .ad-modern-task-list .ad-modern-task {
    grid-template-columns: 35px 20px minmax(110px, 2fr) minmax(100px, 1.2fr) 46px 74px 90px !important;
    column-gap: 8px !important;
}

#dashboardContent .ad-modern-task-number {
    grid-column: 1;
    grid-row: 1;
    white-space: nowrap;
}

#dashboardContent .ad-task-deadline-slot {
    grid-column: 2;
    grid-row: 1;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

#dashboardContent .ad-task-deadline-slot .ad-task-deadline-icon {
    position: static !important;
    display: inline-flex;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

#dashboardContent .ad-modern-task-title { grid-column: 3; grid-row: 1; }
#dashboardContent .ad-modern-task-owner { grid-column: 4; grid-row: 1; }
#dashboardContent .ad-modern-task-progress { grid-column: 5; grid-row: 1; }
#dashboardContent .ad-modern-task .at-status { grid-column: 6; grid-row: 1; }
#dashboardContent .ad-modern-task-deadline {
    grid-column: 7;
    grid-row: 1;
    padding-right: 0 !important;
}

/* =====================================================
   MOBILNI — PORAVNATE IKONICE I ČETIRI VIDLJIVA TIKETA
   ===================================================== */
@media (max-width: 850px) {
    #dashboardContent .ad-modern-task-list .ad-modern-task {
        grid-template-columns: 25px 17px minmax(0, 1fr) 58px !important;
        grid-template-rows: auto auto auto !important;
        column-gap: 4px !important;
        min-height: 76px !important;
        padding: 5px 7px !important;
    }

    #dashboardContent .ad-modern-task-number {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-task-deadline-slot {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 16px;
        height: 16px;
    }

    #dashboardContent .ad-modern-task-title {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-modern-task-progress {
        grid-column: 4 !important;
        grid-row: 1 !important;
    }

    #dashboardContent .ad-modern-task-owner {
        grid-column: 3 !important;
        grid-row: 2 !important;
    }

    #dashboardContent .ad-modern-task .at-status {
        grid-column: 3 !important;
        grid-row: 3 !important;
    }

    #dashboardContent .ad-modern-task-deadline {
        grid-column: 4 !important;
        grid-row: 2 / 4 !important;
        padding-right: 0 !important;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three {
        grid-auto-rows: auto !important;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child {
        height: 410px !important;
        min-height: 410px !important;
        max-height: 410px !important;
    }

    #dashboardContent .dashboard-grid.ad-home-grid.ad-home-three > .dashboard-panel:last-child .ad-modern-task-list {
        min-height: 0 !important;
        overflow-y: auto !important;
    }
}

/* ===== MODALI AKTIVNOSTI – POČETNA ===== */
.ad-activity-dialog-modern {
    width: min(460px, calc(100vw - 28px));
    max-height: min(85dvh, 760px);
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid #dbe6f4;
    border-bottom: 3px solid #3b82f6;
    box-shadow: 0 22px 65px rgba(22, 49, 87, .18);
    background: #fff;
}
.ad-activity-dialog-modern .ad-activity-dialog-header {
    padding: 20px 22px 14px;
    border-bottom: 1px solid #e2ebf7;
}
.ad-activity-dialog-modern .ad-activity-dialog-header h2 { font-size: 19px; line-height: 1.3; }
.ad-activity-dialog-modern .ad-modal-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 15px 22px 0;
    color: #2862a3;
    font-size: 12px;
    font-weight: 650;
}
.ad-activity-dialog-modern .ad-modal-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; }
.ad-activity-dialog-modern .ad-modal-status-dot.is-done { background: #16a34a; }
.ad-activity-dialog-modern .ad-activity-fields {
    margin: 14px 22px;
    padding: 12px 14px;
    background: #f4f8fe;
    border: 1px solid #e5eefb;
    border-radius: 10px;
}
.ad-activity-dialog-modern .ad-activity-fields > div { padding: 6px 0; }
.ad-activity-dialog-modern .ad-modal-items { margin: 0 22px 16px; }
.ad-activity-dialog-modern .ad-modal-items-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 13px; }
.ad-activity-dialog-modern .ad-modal-items-heading span { color: #64748b; font-size: 11px; }
.ad-activity-dialog-modern .ad-modal-check-row {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; margin-bottom: 6px;
    background: #f7f9fd; border: 1px solid #e6edf7; border-radius: 9px;
    cursor: pointer;
}
.ad-activity-dialog-modern .ad-modal-check-row.is-checked { background: #f1f8f4; }
.ad-activity-dialog-modern .ad-modal-check-row input { width: 17px; height: 17px; accent-color: #2879d7; flex: 0 0 auto; }
.ad-activity-dialog-modern .ad-modal-check-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ad-activity-dialog-modern .ad-modal-check-text strong { font-size: 12px; color: #17365f; }
.ad-activity-dialog-modern .ad-modal-check-text small { font-size: 10px; color: #75859d; }
.ad-activity-dialog-modern .ad-modal-completed { margin: 0 22px 14px; font-size: 12px; color: #4b6484; }
.ad-activity-dialog-modern .ad-modal-error { margin: 0 22px 12px; color: #b91c1c; font-size: 12px; }
.ad-activity-dialog-modern .ad-modal-error[hidden] { display: none; }
.ad-activity-dialog-modern footer { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 17px; border-top: 1px solid #e5edf7; }
.ad-activity-dialog-modern .ad-modal-finish { border: 0; border-radius: 9px; background: #247bd7; color: #fff; padding: 9px 16px; font-weight: 650; cursor: pointer; }
.ad-activity-dialog-modern .ad-modal-finish:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) {
    .ad-activity-dialog-modern .ad-activity-dialog-header { padding: 16px 17px 12px; }
    .ad-activity-dialog-modern .ad-activity-fields { margin: 12px 17px; }
    .ad-activity-dialog-modern .ad-modal-items { margin: 0 17px 12px; }
    .ad-activity-dialog-modern footer { padding: 12px 17px 15px; }
}

/* =====================================================
   KOMPAKTNI MODALI — DNEVNO I PRIVATNO
   ===================================================== */
.ad-activity-dialog-modern {
    width: min(440px, calc(100vw - 24px));
    max-height: min(88dvh, 680px);
    border-radius: 13px;
}

.ad-activity-dialog-modern .ad-activity-dialog-header {
    padding: 12px 17px 9px;
}

.ad-activity-dialog-modern .ad-activity-dialog-header h2 {
    font-size: 17px;
    line-height: 1.2;
}

.ad-activity-dialog-modern .ad-modal-status {
    margin: 9px 17px 0;
    font-size: 11px;
}

.ad-activity-dialog-modern .ad-activity-fields {
    margin: 9px 17px;
    padding: 7px 11px;
    border-radius: 8px;
}

.ad-activity-dialog-modern .ad-activity-fields > div {
    padding: 3px 0;
    line-height: 1.3;
}

.ad-activity-dialog-modern .ad-modal-items {
    margin: 0 17px 9px;
}

.ad-activity-dialog-modern .ad-modal-items-heading {
    margin-bottom: 6px;
}

.ad-activity-dialog-modern .ad-modal-check-row {
    gap: 9px;
    min-height: 34px;
    padding: 5px 9px;
    margin-bottom: 4px;
    border-radius: 7px;
}

.ad-activity-dialog-modern .ad-modal-check-row input {
    width: 15px;
    height: 15px;
}

.ad-activity-dialog-modern .ad-modal-check-text {
    gap: 1px;
}

.ad-activity-dialog-modern .ad-modal-check-text strong {
    font-size: 12px;
    line-height: 1.25;
}

.ad-activity-dialog-modern .ad-modal-check-text small {
    font-size: 10px;
    line-height: 1.2;
}

.ad-activity-dialog-modern .ad-modal-completed {
    margin: 0 17px 9px;
}

.ad-activity-dialog-modern .ad-modal-error {
    margin: 0 17px 8px;
}

.ad-activity-dialog-modern footer {
    gap: 7px;
    padding: 9px 17px 11px;
}

.ad-activity-dialog-modern .ad-modal-finish {
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
}

@media (max-width: 520px) {
    .ad-activity-dialog-modern .ad-activity-dialog-header {
        padding: 11px 14px 8px;
    }

    .ad-activity-dialog-modern .ad-modal-status {
        margin: 8px 14px 0;
    }

    .ad-activity-dialog-modern .ad-activity-fields {
        margin: 8px 14px;
    }

    .ad-activity-dialog-modern .ad-modal-items {
        margin: 0 14px 8px;
    }

    .ad-activity-dialog-modern footer {
        padding: 8px 14px 10px;
    }
}

/* =====================================================
   MODALI — ZBIJEN RASPORED I SKROL SAMO STAVKI
   ===================================================== */
.ad-activity-overlay-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.ad-activity-dialog-modern {
    display: flex;
    flex-direction: column;
    width: min(440px, calc(100vw - 24px));
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    overflow: hidden !important;
    scrollbar-width: none;
}

.ad-activity-dialog-modern::-webkit-scrollbar,
.ad-activity-dialog-modern .ad-modal-items::-webkit-scrollbar {
    display: none;
}

.ad-activity-dialog-modern .ad-activity-dialog-header {
    flex: 0 0 auto;
    padding: 10px 15px 7px !important;
}

.ad-activity-dialog-modern .ad-activity-dialog-header small {
    font-size: 10px;
}

.ad-activity-dialog-modern .ad-activity-dialog-header h2 {
    margin: 2px 0 0;
    font-size: 17px;
}

.ad-activity-dialog-modern .ad-modal-status {
    flex: 0 0 auto;
    margin: 7px 15px 0 !important;
}

.ad-activity-dialog-modern .ad-activity-fields {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 7px 15px 9px !important;
    padding: 7px 10px !important;
}

.ad-activity-dialog-modern .ad-activity-fields > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0 !important;
}

.ad-activity-dialog-modern .ad-activity-fields > div span {
    font-size: 10px;
}

.ad-activity-dialog-modern .ad-activity-fields > div strong {
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* Opis, ako postoji, koristi čitavu širinu. */
.ad-activity-dialog-modern .ad-activity-fields > div:nth-child(n + 3) {
    grid-column: 1 / -1;
}

.ad-activity-dialog-modern .ad-modal-items {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: none;
    margin: 0 15px 7px !important;
}

.ad-activity-dialog-modern .ad-modal-items-heading {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 3px 0 5px;
    margin: 0 !important;
    background: #fff;
}

.ad-activity-dialog-modern .ad-modal-check-row {
    min-height: 30px !important;
    gap: 8px;
    padding: 5px 8px !important;
    margin-bottom: 3px !important;
    border-radius: 6px;
}

.ad-activity-dialog-modern .ad-modal-check-row input {
    width: 14px;
    height: 14px;
}

.ad-activity-dialog-modern .ad-modal-check-text {
    gap: 0;
}

.ad-activity-dialog-modern .ad-modal-check-text strong {
    font-size: 11px;
    line-height: 1.25;
}

.ad-activity-dialog-modern .ad-modal-check-text small:empty {
    display: none;
}

.ad-activity-dialog-modern .ad-modal-completed,
.ad-activity-dialog-modern .ad-modal-error {
    flex: 0 0 auto;
}

.ad-activity-dialog-modern footer {
    flex: 0 0 auto;
    margin-top: 0;
    padding: 8px 15px 10px !important;
}

@media (max-width: 520px) {
    .ad-activity-overlay-modern {
        padding: 8px;
    }

    .ad-activity-dialog-modern {
        max-height: calc(100dvh - 16px) !important;
    }
}

/* ===== DASHBOARD: OUTLINE DUGME + NOVO ===== */
#dashboardContent .dashboard-panel-header .ad-home-new,
#dashboardContent .ad-home-head .ad-home-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 78px;
    min-height: 30px;
    padding: 5px 13px;
    border: 1.5px solid #2580db;
    border-radius: 999px;
    background: #ffffff;
    color: #1769b7;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

#dashboardContent .dashboard-panel-header .ad-home-new:hover,
#dashboardContent .ad-home-head .ad-home-new:hover {
    background: #eef6ff;
    border-color: #1769b7;
    color: #12599f;
}

#dashboardContent .dashboard-panel-header .ad-home-new:focus-visible,
#dashboardContent .ad-home-head .ad-home-new:focus-visible {
    outline: 2px solid #1769b7;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    #dashboardContent .dashboard-panel-header .ad-home-new,
    #dashboardContent .ad-home-head .ad-home-new {
        width: auto;
        min-width: 66px;
        min-height: 28px;
        padding: 4px 10px;
        font-size: 11px;
    }
}


/* =====================================================
   POČETNA — OUTLINE NOVO I ODVOJENO SAKRIJ
   Usklađeno sa postojećim style.css pravilima !important
   ===================================================== */

#dashboardContent .dashboard-panel .dashboard-panel-header.ad-home-head .ad-home-new,
#dashboardContent .ad-private-wrap .dashboard-panel .ad-home-head .ad-home-new {
    background: #ffffff !important;
    border: 1.5px solid #2580db !important;
    color: #1769b7 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 76px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 5px 12px !important;
    font-size: 11px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#dashboardContent .dashboard-panel .dashboard-panel-header.ad-home-head .ad-home-new:hover {
    background: #edf6ff !important;
    border-color: #1769b7 !important;
}

/* Privatno: rezerviši mjesto za oba dugmeta u istom redu. */
#dashboardContent .ad-private-wrap {
    position: relative !important;
}

#dashboardContent .ad-private-wrap .dashboard-panel-header.ad-home-head {
    position: relative !important;
    padding-right: 174px !important;
    min-height: 34px !important;
}

#dashboardContent .ad-private-wrap .dashboard-panel-header.ad-home-head > div {
    min-width: 0 !important;
    padding-right: 0 !important;
}

#dashboardContent .ad-private-wrap .dashboard-panel-header.ad-home-head .ad-home-new {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    z-index: 2 !important;
}

#dashboardContent .ad-private-wrap .ad-private-toggle {
    position: absolute !important;
    top: 0 !important;
    right: 85px !important;
    z-index: 3 !important;
    height: 30px !important;
    min-width: 58px !important;
    padding: 5px 10px !important;
    line-height: 1 !important;
    font-size: 10px !important;
    white-space: nowrap !important;
}

/* Toggle je dijete wrappera, pa se poravnava s gornjim rubom zaglavlja. */
#dashboardContent .ad-private-wrap > .ad-private-toggle {
    top: 13px !important;
    right: 101px !important;
}

@media (max-width: 850px) {
    #dashboardContent .ad-private-wrap .dashboard-panel-header.ad-home-head {
        padding-right: 150px !important;
    }

    #dashboardContent .ad-private-wrap > .ad-private-toggle {
        top: 11px !important;
        right: 90px !important;
    }

    #dashboardContent .ad-private-wrap .dashboard-panel-header.ad-home-head .ad-home-new {
        min-width: 66px !important;
        height: 28px !important;
        min-height: 28px !important;
        padding: 4px 9px !important;
    }

    #dashboardContent .ad-private-wrap .ad-private-toggle {
        height: 28px !important;
        min-width: 50px !important;
        font-size: 9px !important;
    }
}


/* ===== ANASOF TASK LOGO — SAMO LIJEVI MENI ===== */
.sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 7px 16px;
    min-height: 58px;
}

.sidebar .anasof-task-logo-full {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    object-fit: contain;
}

.sidebar .anasof-task-logo-icon {
    display: none;
}

@media (max-width: 700px) {
    .sidebar .sidebar-brand {
        justify-content: center;
        padding: 4px 0 18px;
        min-height: 45px;
    }

    .sidebar .anasof-task-logo-full {
        display: none;
    }

    .sidebar .anasof-task-logo-icon {
        display: block;
        width: 40px;
        height: 35px;
        object-fit: contain;
    }
}
