:root{--brand:#073b78;--brand2:#0bbfae;--bg:#f4f7fb}*{box-sizing:border-box}body{font-family:Tahoma,Arial,sans-serif;background:var(--bg);margin:0;color:#1f2937}.app{display:flex;min-height:100vh;direction:rtl}.sidebar{width:280px;background:linear-gradient(180deg,#06346d,#092b5c);color:white;position:fixed;right:0;top:0;bottom:0;overflow:auto;z-index:1000;box-shadow:-4px 0 20px #0002}.brand{text-align:center;padding:18px 12px;border-bottom:1px solid #ffffff1f}.brand img,.admin-logo{width:150px!important;height:150px!important;max-width:150px!important;max-height:150px!important;object-fit:contain;background:#fff;border-radius:8px}.brand a{color:white;text-decoration:none}.brand-title{font-weight:700;margin-top:8px}.sidebar a.nav-link{color:#eef;display:flex;justify-content:space-between;gap:8px;padding:13px 18px;text-decoration:none;border-bottom:1px solid #ffffff10;font-weight:600}.sidebar a.nav-link:hover,.sidebar a.nav-link.active{background:#0a4b91;color:white}.content{margin-right:280px;width:calc(100% - 280px);padding:22px}.topbar{background:white;border-radius:16px;box-shadow:0 8px 30px #1f29371a;padding:14px 18px;margin-bottom:22px;display:flex;align-items:center;justify-content:space-between}.page-card{background:white;border-radius:16px;box-shadow:0 8px 30px #1f293714;padding:18px;margin-bottom:18px}.btn{border-radius:10px}.form-control,.form-select{border-radius:10px;min-height:42px}.table{vertical-align:middle}.table thead th{background:#f1f5f9}.table-responsive{border-radius:14px;overflow:auto}.logo-anim{animation:float 2.4s ease-in-out infinite}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}.mobile-menu{display:none}.action-btns .btn{margin:2px}.stat{border-radius:16px;background:linear-gradient(135deg,#fff,#eef6ff);padding:18px;box-shadow:0 8px 30px #1f293714}.table-success-soft{background:#dff7ea!important}@media(max-width:900px){.mobile-menu{display:block}.sidebar{transform:translateX(100%);transition:.25s}.sidebar.open{transform:translateX(0)}.content{margin-right:0;width:100%;padding:12px}.topbar{position:sticky;top:0;z-index:900}.brand img,.admin-logo{width:120px!important;height:120px!important}.table{min-width:900px}.page-card{padding:12px}.row.g-2>[class*=col]{margin-bottom:6px}}@media print{.sidebar,.topbar,.no-print,.btn{display:none!important}.content{margin:0;width:100%}.page-card{box-shadow:none}}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:10px}.calendar-head{font-weight:700;text-align:center;background:#eaf2ff;border-radius:12px;padding:10px}.calendar-day{min-height:150px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:10px;box-shadow:0 4px 14px #1f29370a}.calendar-day.muted{background:#f8fafc;color:#94a3b8}.calendar-date{font-weight:700;margin-bottom:8px}.meeting-item{display:block;text-decoration:none;background:#eef6ff;border-right:4px solid var(--brand);border-radius:10px;padding:7px;margin-bottom:6px;color:#0f172a;font-size:13px}.meeting-item:hover{background:#dbeafe}.meeting-time{font-weight:700;color:#073b78}.filters-card{background:#f8fafc;border-radius:14px;padding:12px}@media(max-width:1200px){.calendar-grid{grid-template-columns:repeat(7,minmax(120px,1fr))}}@media(max-width:900px){.calendar-grid{display:block}.calendar-head{display:none}.calendar-day{margin-bottom:10px;min-height:auto}}

/* Professional tables/details */
.permission-pill{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px 12px;font-weight:600;color:#0f172a}.details-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.details-grid>div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px}.details-grid span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.details-grid b{display:block;color:#0f172a;word-break:break-word}.comment-preview{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:14px;min-height:70px}.modal-content{border:0;border-radius:18px;box-shadow:0 30px 80px #0f172a40}.modal-header{background:#f8fafc;border-radius:18px 18px 0 0}.modal-footer{background:#fff;border-radius:0 0 18px 18px}@media(max-width:992px){.details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.details-grid{grid-template-columns:1fr}}

/* Professional calendar */
.calendar-shell{display:flex;flex-direction:column;gap:18px}.calendar-hero{background:linear-gradient(135deg,#073b78,#0a62b6 70%,#0bbfae);border-radius:24px;color:white;padding:26px;box-shadow:0 18px 45px #073b7833;display:flex;align-items:center;justify-content:space-between;gap:18px;overflow:hidden;position:relative}.calendar-hero:before{content:"";position:absolute;left:-80px;top:-80px;width:220px;height:220px;border-radius:999px;background:#ffffff18}.calendar-hero:after{content:"";position:absolute;right:30%;bottom:-110px;width:260px;height:260px;border-radius:999px;background:#ffffff10}.calendar-hero>*{position:relative;z-index:1}.calendar-hero h2{font-size:34px;font-weight:800;margin:4px 0}.calendar-hero p{margin:0;color:#eaf6ff}.eyebrow{font-size:13px;letter-spacing:.5px;color:#bff7ef;font-weight:700}.calendar-nav-actions{display:flex;gap:8px;flex-wrap:wrap}.calendar-stats{margin:0}.calendar-stat{background:white;border:1px solid #e5e7eb;border-radius:18px;padding:16px 18px;box-shadow:0 8px 28px #1f29370f;min-height:86px}.calendar-stat span{display:block;color:#64748b;font-size:13px;margin-bottom:8px}.calendar-stat b{font-size:22px;color:#073b78}.calendar-filter-panel{background:white;border:1px solid #e5e7eb;border-radius:20px;padding:16px;box-shadow:0 8px 28px #1f29370f;margin:0}.calendar-board{background:white;border:1px solid #e5e7eb;border-radius:24px;padding:14px;box-shadow:0 10px 30px #1f293714}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-bottom:10px}.calendar-weekdays div{background:#f1f5f9;border-radius:14px;text-align:center;font-weight:800;color:#334155;padding:12px}.calendar-grid-pro{display:grid;grid-template-columns:repeat(7,minmax(135px,1fr));gap:10px}.calendar-cell{min-height:178px;background:#ffffff;border:1px solid #e5e7eb;border-radius:18px;padding:10px;transition:.18s;box-shadow:0 6px 18px #0f172a08}.calendar-cell:hover{transform:translateY(-2px);box-shadow:0 12px 28px #0f172a14;border-color:#b9d4ff}.calendar-cell.is-muted{background:#f8fafc;color:#94a3b8}.calendar-cell.is-today{border:2px solid #0bbfae;background:linear-gradient(180deg,#ecfffd,#fff)}.cell-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:10px}.day-num{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:12px;background:#eef6ff;color:#073b78;font-weight:900}.is-today .day-num{background:#0bbfae;color:white}.day-name{display:none;margin-inline-start:8px;color:#64748b;font-size:13px;font-weight:700}.count-badge{background:#073b78;color:white;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}.appointments-list{display:flex;flex-direction:column;gap:7px}.appointment-card{width:100%;text-align:right;border:0;border-right:4px solid #0a62b6;background:#eef6ff;border-radius:12px;padding:8px 9px;color:#0f172a;cursor:pointer;transition:.15s}.appointment-card:hover{background:#dbeafe}.appointment-time{display:inline-block;font-weight:900;color:#073b78;margin-left:6px}.appointment-client{font-weight:800}.appointment-card small{display:block;color:#64748b;margin-top:2px}.more-events{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;padding:7px;text-align:center;color:#64748b;font-size:12px;font-weight:700}@media(max-width:1250px){.calendar-grid-pro{grid-template-columns:repeat(7,minmax(115px,1fr))}.calendar-cell{min-height:160px}}@media(max-width:900px){.calendar-hero{display:block}.calendar-nav-actions{margin-top:16px}.calendar-weekdays{display:none}.calendar-grid-pro{display:block}.calendar-cell{min-height:auto;margin-bottom:10px}.day-name{display:inline}.calendar-board{padding:10px}.calendar-hero h2{font-size:28px}}

/* Calendar refresh v3 */
.calendar-hero.clean{padding:22px 24px;border-radius:22px;align-items:center}
.calendar-hero-main{display:flex;flex-direction:column;gap:4px}
.calendar-nav-clean{display:flex;gap:10px;flex-wrap:wrap}
.calendar-nav-clean .btn{min-width:122px}
.pro-month-board{padding:18px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.calendar-weekdays.sticky-head{gap:12px;margin-bottom:12px}
.calendar-weekdays.sticky-head div{background:#eef4fb;border:1px solid #d9e5f5;color:#12385f;padding:14px 10px;font-size:14px;border-radius:16px}
.calendar-grid-pro.monthly-boxes{gap:12px;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-cell.month-square{min-height:255px;height:255px;padding:12px;border-radius:18px;display:flex;flex-direction:column;background:#fff;border:1px solid #dde7f3;box-shadow:0 10px 24px rgba(15,23,42,.06);overflow:hidden}
.calendar-cell.month-square.is-muted{background:#f7f9fc;opacity:.9}
.calendar-cell.month-square.is-today{background:linear-gradient(180deg,#effcf8,#ffffff);border:2px solid #18b893}
.cell-top.clean{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #edf2f7;align-items:flex-start}
.day-meta{display:flex;align-items:center;gap:10px}
.day-meta-text{display:flex;flex-direction:column;line-height:1.2}
.day-meta-text strong{font-size:14px;color:#0f172a}
.day-meta-text small{font-size:11px;color:#64748b}
.count-badge.empty{background:#e2e8f0;color:#475569}
.full-day-list{display:flex;flex-direction:column;gap:8px;overflow:auto;flex:1;padding-left:2px}
.full-day-list::-webkit-scrollbar{width:7px;height:7px}
.full-day-list::-webkit-scrollbar-thumb{background:#c7d5e5;border-radius:999px}
.appointment-card.full-info{padding:10px 10px 9px;border-right-width:5px;border-radius:14px;background:linear-gradient(180deg,#f6fbff,#ecf5ff)}
.appointment-card.full-info:hover{background:linear-gradient(180deg,#eaf4ff,#dcebff)}
.appointment-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}
.appointment-type{font-size:11px;font-weight:800;color:#0b8f81;background:#e8faf7;border-radius:999px;padding:3px 8px;white-space:nowrap}
.appointment-note{margin-top:5px;font-size:12px;color:#475569;line-height:1.45;background:#ffffffa8;border-radius:9px;padding:5px 7px}
.day-empty-state{display:flex;align-items:center;justify-content:center;flex:1;background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 8px,#f1f5f9 8px,#f1f5f9 16px);border-radius:14px;border:1px dashed #d2dbe6;color:#64748b;font-size:13px;font-weight:700;padding:12px;text-align:center}
.calendar-filter-panel .form-label{font-weight:700;color:#334155}
.calendar-filter-panel .btn{min-height:42px}

@media(max-width:1400px){
  .calendar-cell.month-square{min-height:235px;height:235px}
}
@media(max-width:1200px){
  .calendar-grid-pro.monthly-boxes{grid-template-columns:repeat(4,minmax(0,1fr))}
  .calendar-cell.month-square{height:250px}
}
@media(max-width:992px){
  .calendar-grid-pro.monthly-boxes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .calendar-hero.clean{display:block}
  .calendar-nav-clean{margin-top:16px}
}
@media(max-width:650px){
  .calendar-weekdays.sticky-head{display:none}
  .calendar-grid-pro.monthly-boxes{grid-template-columns:1fr}
  .calendar-cell.month-square{height:auto;min-height:unset}
  .full-day-list{max-height:none;overflow:visible}
  .day-meta-text strong{font-size:13px}
  .calendar-nav-clean .btn{flex:1}
}


/* Reports page v4 */
.reports-page{overflow:hidden}
.reports-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}
.report-tabs{gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:8px}
.report-tabs .nav-link{border-radius:14px;font-weight:800;color:#334155;padding:11px 18px}
.report-tabs .nav-link.active{background:linear-gradient(135deg,#073b78,#0a62b6);box-shadow:0 10px 24px #073b782b}
.report-filter{background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbe7f5;border-radius:20px;padding:16px;margin-bottom:16px;box-shadow:0 10px 26px #0f172a0a}
.report-filter .form-label{font-weight:800;color:#334155;margin-bottom:6px}
.kpi-card,.analysis-card,.platform-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:18px;box-shadow:0 12px 28px #0f172a0c;min-height:104px}
.kpi-card span,.analysis-card span{display:block;color:#64748b;font-size:13px;font-weight:700;margin-bottom:8px}
.kpi-card b,.analysis-card b{display:block;color:#073b78;font-size:24px;font-weight:900}
.analysis-card small{display:block;margin-top:7px;color:#475569;font-weight:800;font-size:15px}
.analysis-card.success{background:linear-gradient(180deg,#f0fdf4,#fff)}
.analysis-card.info{background:linear-gradient(180deg,#eff6ff,#fff)}
.analysis-card.warning{background:linear-gradient(180deg,#fffbeb,#fff)}
.analysis-card.danger{background:linear-gradient(180deg,#fef2f2,#fff)}
.metric-btn{border:0;background:#0bbfae;color:#fff;border-radius:12px;min-width:44px;padding:7px 11px;font-weight:900;box-shadow:0 7px 16px #0bbfae3d}
.metric-btn:hover{filter:brightness(.95)}
.metric-btn.sales{background:#0a62b6;box-shadow:0 7px 16px #0a62b63d}
.metric-btn.product{background:#8b5cf6;box-shadow:0 7px 16px #8b5cf63d}
.fancy-table{border:1px solid #e2e8f0;border-radius:18px;background:white;box-shadow:0 12px 28px #0f172a0c}
.fancy-table table{margin-bottom:0}
.fancy-table thead th{background:linear-gradient(180deg,#eef4fb,#e7eff8)!important;color:#0f172a;font-weight:900;white-space:nowrap}
.fancy-table tbody td{white-space:nowrap}
.report-wide-table{min-width:2200px}
.timeline-list{display:flex;flex-direction:column;gap:14px}
.timeline-item{display:grid;grid-template-columns:150px 1fr;gap:14px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px;box-shadow:0 8px 20px #0f172a08}
.timeline-date{background:#eef6ff;border-radius:15px;padding:12px;text-align:center;color:#073b78}
.timeline-date b{display:block;font-size:16px}
.timeline-date span{display:block;color:#64748b;margin-top:4px}
.timeline-content p{margin:10px 0 0;background:#f8fafc;border-radius:14px;padding:12px;color:#334155;line-height:1.8}
.detail-tags{display:flex;flex-wrap:wrap;gap:8px}
.detail-tags span{background:#eef2ff;color:#334155;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}
.report-section-title{font-weight:900;font-size:18px;margin:24px 0 12px;color:#0f172a}
.platform-card{display:flex;align-items:center;justify-content:space-between;min-height:84px}
.platform-card b{font-size:18px;color:#073b78}
.platform-card span{background:#eef6ff;color:#0a62b6;border-radius:999px;padding:6px 12px;font-weight:900}
.empty-report{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;padding:18px;text-align:center;color:#64748b;font-weight:800}
.calendar-report-list{display:flex;flex-direction:column;gap:16px}
.calendar-report-day{background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:16px;box-shadow:0 12px 28px #0f172a0c}
.calendar-day-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #edf2f7}
.calendar-day-head span{display:block;color:#64748b;font-size:12px;font-weight:800}
.calendar-day-head b{font-size:22px;color:#073b78}
.calendar-day-head strong{background:#073b78;color:white;border-radius:999px;padding:7px 14px}
.calendar-meeting-card{width:100%;text-align:right;border:1px solid #dbe7f5;background:linear-gradient(180deg,#f8fbff,#fff);border-radius:18px;padding:14px;box-shadow:0 8px 18px #0f172a08;transition:.15s}
.calendar-meeting-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px #0f172a12}
.calendar-meeting-card .time{display:inline-flex;align-items:center;justify-content:center;background:#0bbfae;color:white;border-radius:999px;padding:4px 10px;font-weight:900;margin-bottom:8px}
.calendar-meeting-card b{display:block;color:#0f172a;font-size:16px}
.calendar-meeting-card small{display:block;color:#64748b;margin-top:4px}
@media(max-width:768px){
  .timeline-item{grid-template-columns:1fr}
  .report-tabs .nav-link{width:100%;text-align:center}
}

/* Reports page v5: exports, charts and polished calendar report */
.report-filter .btn-success{background:linear-gradient(135deg,#0bbf7a,#079862);border:0;font-weight:900;box-shadow:0 10px 22px rgba(7,152,98,.22)}
.followup-table-wrap{overflow-x:auto!important;overflow-y:hidden;max-width:100%;padding-bottom:8px;scrollbar-width:thin;scrollbar-color:#9fb4cc #edf3f8}
.followup-table-wrap::-webkit-scrollbar{height:12px}.followup-table-wrap::-webkit-scrollbar-track{background:#edf3f8;border-radius:999px}.followup-table-wrap::-webkit-scrollbar-thumb{background:#9fb4cc;border-radius:999px}
.report-wide-table{min-width:2900px!important;table-layout:auto}.report-wide-table th,.report-wide-table td{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;padding-inline:16px!important}.report-wide-table thead th{position:sticky;top:0;z-index:3;min-width:145px;line-height:1.2;text-align:center}.report-wide-table td:first-child,.report-wide-table th:first-child{position:sticky;right:0;z-index:2;background:#fff;min-width:135px}.report-wide-table th:first-child{background:linear-gradient(180deg,#eef4fb,#e7eff8)!important;z-index:4}
.charts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:8px}.chart-card{background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #dbe7f5;border-radius:24px;padding:20px;box-shadow:0 14px 34px rgba(15,23,42,.10);min-height:255px}.chart-card.big-chart{min-height:285px}.chart-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #edf2f7}.chart-title span{font-size:18px;font-weight:900;color:#073b78}.chart-title b{background:#eef6ff;color:#0a62b6;border-radius:999px;padding:6px 12px;font-size:12px}.hbar-row{display:grid;grid-template-columns:210px 1fr 120px;gap:12px;align-items:center;margin:14px 0}.hbar-label{font-weight:800;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hbar-track{height:17px;background:#eaf1f9;border-radius:999px;overflow:hidden;position:relative}.hbar-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#073b78,#0a62b6,#0bbfae);box-shadow:inset 0 0 0 1px rgba(255,255,255,.25)}.hbar-row.employee .hbar-fill{background:linear-gradient(90deg,#0a62b6,#8b5cf6)}.hbar-row.problems.p1 .hbar-fill{background:linear-gradient(90deg,#10b981,#0bbfae)}.hbar-row.problems.p2 .hbar-fill{background:linear-gradient(90deg,#ef4444,#f97316)}.hbar-row.platforms .hbar-fill{background:linear-gradient(90deg,#8b5cf6,#0a62b6)}.hbar-row strong{font-weight:900;color:#0f172a;text-align:left;white-space:nowrap}.report-calendar-shell{margin-top:8px}.report-calendar-hero h2{font-size:28px}.report-days-board{padding:18px!important}.calendar-days-only-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.report-day-only{height:315px!important;min-height:315px!important}.report-day-only .full-day-list{max-height:none}.report-day-only .appointment-card.full-info{min-height:auto}.report-day-only .appointment-note{max-height:56px;overflow:hidden}.calendar-stat{transition:.15s}.calendar-stat:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,23,42,.12)}
@media(max-width:1200px){.charts-grid{grid-template-columns:1fr}.calendar-days-only-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hbar-row{grid-template-columns:170px 1fr 105px}}
@media(max-width:700px){.calendar-days-only-grid{grid-template-columns:1fr}.report-day-only{height:auto!important;min-height:unset!important}.hbar-row{grid-template-columns:1fr}.hbar-row strong{text-align:right}.charts-grid{gap:12px}.chart-card{padding:14px}}

/* Dashboard 7-day calendar */
.dashboard-week-calendar .mini-day-card{
    height:100%;
    background:#fff;
    border:1px solid rgba(15,23,42,.08);
    border-radius:18px;
    padding:14px;
    box-shadow:0 10px 25px rgba(15,23,42,.06);
}
.dashboard-week-calendar .mini-day-card.today{
    border-color:#0d6efd;
    box-shadow:0 10px 28px rgba(13,110,253,.12);
}
.dashboard-week-calendar .mini-day-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(15,23,42,.08);
}
.dashboard-week-calendar .mini-day-head small{
    display:block;
    color:#64748b;
    margin-top:3px;
    direction:ltr;
    text-align:right;
}
.dashboard-week-calendar .mini-day-head span{
    background:#eef5ff;
    color:#0d6efd;
    border-radius:999px;
    padding:4px 9px;
    font-size:12px;
    white-space:nowrap;
}
.dashboard-week-calendar .mini-day-body{
    margin-top:10px;
    display:grid;
    gap:8px;
}
.dashboard-week-calendar .mini-event{
    background:#f8fafc;
    border:1px solid rgba(15,23,42,.07);
    border-radius:12px;
    padding:9px;
    font-size:13px;
}
.dashboard-week-calendar .mini-event small{
    display:block;
    color:#64748b;
    margin-top:4px;
}


/* Dashboard calendar premium animated UI */
.dashboard-calendar-pro{position:relative;overflow:hidden;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 48%,#eef8ff 100%);border:1px solid #dbeafe;border-radius:28px;padding:22px;box-shadow:0 22px 55px rgba(15,23,42,.10);animation:dashFadeUp .55s ease both}
.dashboard-calendar-pro:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 18%,rgba(11,191,174,.16),transparent 28%),radial-gradient(circle at 10% 4%,rgba(7,59,120,.12),transparent 26%);pointer-events:none}
.dashboard-calendar-pro>*:not(.dash-calendar-glow){position:relative;z-index:2}.dash-calendar-glow{position:absolute;border-radius:999px;filter:blur(12px);opacity:.65;animation:dashFloat 5.5s ease-in-out infinite}.dash-calendar-glow.glow-one{width:180px;height:180px;left:-70px;top:-55px;background:rgba(11,191,174,.18)}.dash-calendar-glow.glow-two{width:230px;height:230px;right:36%;bottom:-145px;background:rgba(10,98,182,.12);animation-delay:1.2s}.dash-calendar-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.dash-eyebrow{display:inline-flex;background:#e8fff9;color:#058b7f;border:1px solid #bdf4e9;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:900;margin-bottom:8px}.dash-title-area h4{margin:0;color:#073b78;font-size:26px;font-weight:900}.dash-title-area p{margin:7px 0 0;color:#64748b;font-weight:700}.dash-title-area p b{color:#0f172a;direction:ltr;display:inline-block}.dash-actions-area{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dash-scope-badge{background:#073b78;color:white;border-radius:999px;padding:9px 14px;font-weight:900;box-shadow:0 12px 24px rgba(7,59,120,.20)}.dash-open-calendar{background:#fff;color:#0a62b6;border:1px solid #b9d7ff;font-weight:900;box-shadow:0 10px 22px rgba(10,98,182,.10)}.dash-open-calendar:hover{background:#0a62b6;color:#fff;transform:translateY(-2px)}.dash-calendar-summary{display:grid;grid-template-columns:1fr 1.4fr 1.6fr;gap:12px;margin-bottom:18px}.dash-summary-card{background:rgba(255,255,255,.82);border:1px solid #dbe7f5;border-radius:20px;padding:14px 16px;box-shadow:0 12px 28px rgba(15,23,42,.07);backdrop-filter:blur(8px);transition:.2s}.dash-summary-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(15,23,42,.11)}.dash-summary-card span{display:block;color:#64748b;font-size:12px;font-weight:900;margin-bottom:6px}.dash-summary-card b{display:block;color:#073b78;font-size:18px;font-weight:900;line-height:1.4}.dash-summary-card small{display:block;color:#0bbfae;font-weight:900;margin-top:3px}.dash-calendar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.dash-day-card{position:relative;min-height:270px;background:rgba(255,255,255,.88);border:1px solid #dbe7f5;border-radius:24px;padding:15px;box-shadow:0 14px 32px rgba(15,23,42,.08);overflow:hidden;transition:.25s cubic-bezier(.2,.8,.2,1);animation:dashFadeUp .55s ease both;animation-delay:calc(var(--i) * 70ms)}.dash-day-card:before{content:"";position:absolute;inset:auto -35px -60px auto;width:130px;height:130px;border-radius:999px;background:rgba(10,98,182,.055);transition:.25s}.dash-day-card:hover{transform:translateY(-7px) scale(1.01);border-color:#9dccff;box-shadow:0 22px 44px rgba(15,23,42,.14)}.dash-day-card:hover:before{transform:scale(1.25);background:rgba(11,191,174,.10)}.dash-day-card.today{border:2px solid #0bbfae;background:linear-gradient(180deg,#effffb,#ffffff);box-shadow:0 18px 42px rgba(11,191,174,.18)}.dash-day-card.today .dash-date-bubble{background:linear-gradient(135deg,#0bbfae,#0a62b6);color:#fff;box-shadow:0 12px 24px rgba(11,191,174,.25);animation:todayPulse 2.2s ease-in-out infinite}.dash-card-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid #edf2f7}.dash-date-bubble{width:54px;height:54px;border-radius:18px;background:#eef6ff;color:#073b78;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:0 0 auto}.dash-date-bubble strong{font-size:21px;line-height:1;font-weight:900}.dash-date-bubble span{font-size:11px;font-weight:900;margin-top:3px}.dash-day-info{min-width:0;flex:1}.dash-day-info strong{display:block;color:#0f172a;font-size:16px;font-weight:900}.dash-day-info small{display:block;color:#64748b;font-size:11px;direction:ltr;text-align:right;margin-top:3px}.dash-count-pill{background:#e2ecf7;color:#334155;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;white-space:nowrap}.dash-day-card.has-events .dash-count-pill{background:#073b78;color:#fff}.dash-progress-line{height:4px;background:#edf2f7;border-radius:999px;overflow:hidden;margin:13px 0 12px}.dash-progress-line i{display:block;height:100%;width:calc((var(--count) / 4) * 100%);min-width:30px;background:linear-gradient(90deg,#0bbfae,#0a62b6);border-radius:999px;animation:shineMove 1.7s ease-in-out infinite}.dash-events-list{display:flex;flex-direction:column;gap:9px}.dash-event-card{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:start;background:linear-gradient(180deg,#f8fbff,#ffffff);border:1px solid #dbe7f5;border-right:5px solid #0a62b6;border-radius:17px;padding:11px;box-shadow:0 8px 18px rgba(15,23,42,.06);animation:eventSlide .38s ease both;animation-delay:calc((var(--i) * 55ms) + (var(--n) * 75ms));transition:.2s}.dash-event-card:hover{transform:translateX(-4px);background:#eef7ff}.dash-event-time{background:#0bbfae;color:#fff;border-radius:14px;text-align:center;padding:7px 6px;font-weight:900;direction:ltr;box-shadow:0 8px 16px rgba(11,191,174,.18)}.dash-event-main b{display:block;color:#0f172a;font-size:14px;font-weight:900;margin-bottom:2px}.dash-event-main span{display:inline-flex;background:#e8fff9;color:#05786f;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;margin-bottom:5px}.dash-event-main small{display:block;color:#64748b;font-size:11px;font-weight:700;line-height:1.5}.dash-empty-state{min-height:145px;border:1px dashed #cfe0f2;border-radius:18px;background:repeating-linear-gradient(135deg,#f8fbff,#f8fbff 10px,#f1f7ff 10px,#f1f7ff 20px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#64748b;padding:18px;animation:softBreathe 3s ease-in-out infinite}.dash-empty-state span{width:40px;height:40px;border-radius:15px;background:#e8fff9;color:#0bbfae;display:flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:10px}.dash-empty-state b{color:#334155;font-size:14px;margin-bottom:3px}.dash-empty-state small{font-size:12px}@keyframes dashFadeUp{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes eventSlide{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}@keyframes dashFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-16px)}}@keyframes shineMove{0%,100%{filter:saturate(1);opacity:.85}50%{filter:saturate(1.35);opacity:1}}@keyframes todayPulse{0%,100%{box-shadow:0 12px 24px rgba(11,191,174,.25)}50%{box-shadow:0 16px 32px rgba(11,191,174,.38)}}@keyframes softBreathe{0%,100%{background-position:0 0}50%{background-position:24px 0}}@media(max-width:1350px){.dash-calendar-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:992px){.dash-calendar-top{display:block}.dash-actions-area{margin-top:14px}.dash-calendar-summary{grid-template-columns:1fr}.dash-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.dashboard-calendar-pro{padding:14px;border-radius:22px}.dash-calendar-grid{grid-template-columns:1fr}.dash-day-card{min-height:auto}.dash-title-area h4{font-size:22px}.dash-event-card{grid-template-columns:1fr}.dash-event-time{width:max-content}}

/* CRM enhancements */
.search-select-wrap{position:relative;width:100%;direction:rtl}.search-select-input{margin-bottom:.35rem;border-radius:10px}.search-select-wrap select{border-radius:10px}.select-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.select-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #d7e3ff;background:#eef5ff;border-radius:999px;font-size:13px;color:#0f2f5f}.select-chip button{border:0;background:#0d6efd;color:#fff;width:18px;height:18px;border-radius:50%;line-height:16px;padding:0}.audio-recorder{border:1px dashed #b8c7df;background:#f8fbff;border-radius:12px;padding:10px;margin-bottom:10px;direction:rtl}.audio-recorder .btn{margin-inline-end:6px}.audio-status{font-size:12px;color:#57667a;margin-top:6px}.cost-next-row{direction:rtl}.cost-next-row .form-label{margin-bottom:4px}.modal-content{direction:rtl}

/* Global nice searchable selects */
.search-select-wrap{display:none!important}
.nice-original-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:1px!important}
.nice-select{position:relative;width:100%;direction:rtl;margin-bottom:.35rem;z-index:2}
.nice-select.open{z-index:3000}
.nice-select-btn{width:100%;min-height:44px;border:1px solid #d8e0ea;background:#fff;border-radius:13px;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:right;color:#374151;box-shadow:0 2px 8px #0f172a08;transition:.18s}
.nice-select-btn:hover,.nice-select.open .nice-select-btn{border-color:#86b7fe;box-shadow:0 0 0 .22rem #0d6efd1c;background:#fff}
.nice-select-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:calc(100% - 28px)}
.nice-select-arrow{font-size:18px;line-height:1;color:#0f766e;transition:.18s}
.nice-select.open .nice-select-arrow{transform:rotate(180deg)}
.nice-select-panel{display:none;position:absolute;top:calc(100% + 7px);right:0;left:0;background:#fff;border:1px solid #ead39a;border-radius:15px;padding:10px;box-shadow:0 18px 45px #0f172a24;max-height:310px;overflow:hidden;z-index:9999}
.nice-select.open .nice-select-panel{display:block;animation:niceDrop .16s ease-out}
@keyframes niceDrop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
.nice-select-search{width:100%;height:42px;border:1px solid #efd89f;border-radius:11px;padding:8px 12px;margin-bottom:8px;outline:none;text-align:right;background:#fff;font-weight:600}
.nice-select-search:focus{border-color:#0bbfae;box-shadow:0 0 0 .18rem #0bbfae22}
.nice-select-list{max-height:235px;overflow:auto;padding-inline-start:4px;scrollbar-width:thin}
.nice-select-option{width:100%;border:0;background:#fff;text-align:right;padding:11px 12px;border-radius:10px;font-weight:700;color:#111827;display:flex;align-items:center;gap:8px;justify-content:flex-start;transition:.14s}
.nice-select-option:hover{background:#f3fbfa;color:#05756c;transform:translateX(-2px)}
.nice-select-option.selected{background:#e8faf7;color:#04766d}
.nice-select-option.disabled{opacity:.5;cursor:not-allowed}
.nice-check{width:20px;height:20px;border-radius:50%;background:#0bbfae;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;flex:0 0 auto}
.nice-select-empty{padding:18px 10px;text-align:center;color:#6b7280;font-weight:700}
.select-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px;min-height:0}
.select-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #9fe5dd;background:linear-gradient(135deg,#eafffc,#f8ffff);border-radius:999px;font-size:13px;font-weight:700;color:#075e57;box-shadow:0 5px 14px #0bbfae1b}
.select-chip button{border:0;background:#0bbfae;color:#fff;width:19px;height:19px;border-radius:50%;line-height:16px;padding:0;font-weight:900}
.table audio{min-width:180px;max-width:220px;filter:drop-shadow(0 3px 8px #0001)}
.audio-missing{display:inline-block;padding:6px 10px;border-radius:999px;background:#fff3cd;color:#8a6100;font-size:12px;font-weight:700}

/* Clean searchable selects using Choices.js */
.nice-select,.search-select-wrap{display:none!important}
.choices{width:100%;direction:rtl;margin-bottom:.5rem!important;font-size:15px;position:relative;z-index:5}
.choices.is-open{z-index:99999!important}
.choices__inner{min-height:44px!important;border:1px solid #d8e0ea!important;background:#fff!important;border-radius:13px!important;padding:7px 12px!important;box-shadow:0 2px 8px #0f172a08!important;text-align:right!important}
.choices.is-focused .choices__inner,.choices.is-open .choices__inner{border-color:#0bbfae!important;box-shadow:0 0 0 .22rem #0bbfae22!important}
.choices__list--single{padding:3px 4px!important;text-align:right!important}
.choices__placeholder{opacity:.75!important}
.choices[data-type*=select-one]::after{right:auto!important;left:14px!important;border-color:#0f766e transparent transparent!important}
.choices[data-type*=select-one].is-open::after{border-color:transparent transparent #0f766e!important;margin-top:-7px!important}
.choices__list--dropdown,.choices__list[aria-expanded]{direction:rtl!important;text-align:right!important;border:1px solid #ead39a!important;border-radius:15px!important;margin-top:8px!important;box-shadow:0 18px 45px #0f172a24!important;z-index:999999!important;overflow:hidden!important;background:#fff!important}
.choices__input--cloned{width:100%!important;background:#fff!important;border:1px solid #efd89f!important;border-radius:11px!important;padding:10px 12px!important;margin:8px!important;text-align:right!important;font-weight:600!important;max-width:calc(100% - 16px)!important}
.choices__list--dropdown .choices__item,.choices__list[aria-expanded] .choices__item{font-weight:700!important;padding:12px 14px!important;text-align:right!important;color:#111827!important}
.choices__list--dropdown .choices__item--selectable.is-highlighted,.choices__list[aria-expanded] .choices__item--selectable.is-highlighted{background:#e8faf7!important;color:#04766d!important}
.choices__list--multiple .choices__item{background:#0bbfae!important;border:1px solid #08a99a!important;border-radius:999px!important;font-weight:700!important;padding:5px 10px!important;margin:3px!important}
.choices__button{border-right:1px solid #fff8!important;border-left:0!important;margin-right:8px!important;margin-left:0!important}
.modal .choices__list--dropdown,.modal .choices__list[aria-expanded]{z-index:1000000!important}

/* v20 select polish - site wide */
select.form-select, select.form-control, select:not([size]):not([multiple]){
  min-height:46px;
  border-radius:16px!important;
  border:1px solid #cfe1f5!important;
  background-color:#fff!important;
  box-shadow:0 8px 20px rgba(15,23,42,.06)!important;
  font-weight:800;
  color:#172033!important;
  transition:.18s ease;
}
select.form-select:focus, select.form-control:focus, select:focus{
  border-color:#0bbfae!important;
  box-shadow:0 0 0 .22rem rgba(11,191,174,.18),0 12px 26px rgba(15,23,42,.08)!important;
}
.form-label{font-weight:900;color:#233047;margin-bottom:7px}.form-control,.form-select{border-radius:16px!important}
.choices{animation:selectFadeIn .22s ease both}.choices__inner{background:linear-gradient(180deg,#fff,#fbfdff)!important;border-radius:16px!important;min-height:48px!important}.choices__item{font-weight:800}.choices__list--dropdown,.choices__list[aria-expanded]{border-radius:18px!important}.choices__list--dropdown .choices__item--selectable:after{display:none!important}.choices__input--cloned{border-radius:14px!important}.choices__list--multiple .choices__item{box-shadow:0 8px 18px rgba(11,191,174,.18)!important}.choices.is-disabled .choices__inner{background:#f3f6fa!important;color:#94a3b8!important}
@keyframes selectFadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* v20 audio/url display */
.audio-player-pro{display:flex;align-items:center;gap:8px;justify-content:flex-end;direction:rtl;background:linear-gradient(135deg,#f8fbff,#ffffff);border:1px solid #dbe7f5;border-radius:16px;padding:8px 10px;box-shadow:0 8px 18px rgba(15,23,42,.06)}
.audio-player-pro audio{width:210px;max-width:100%}.audio-missing{background:#fff7ed!important;color:#9a3412!important;border:1px solid #fed7aa!important}

/* Invoice select states */
.choices.is-disabled .choices__inner{
  background:#f3f6fb!important;
  color:#94a3b8!important;
  cursor:not-allowed;
}
.choices[data-type*=select-one] .choices__inner{
  min-height:46px;
  border-radius:16px;
  border:1px solid #d8e3ef;
}
.choices__list--dropdown{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 45px rgba(15,35,70,.14);
  border:1px solid #d8e3ef;
}

/* Customer Portal & Support Tickets */
.client-portal-body{background:radial-gradient(circle at top right,#e8f2ff,#f7f9fc 45%,#eef2f7);min-height:100vh}.client-nav{height:72px;background:rgba(255,255,255,.86);backdrop-filter:blur(16px);border-bottom:1px solid #e7edf5;display:flex;align-items:center;justify-content:space-between;padding:0 5vw;position:sticky;top:0;z-index:5}.client-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:#0f172a;font-weight:900}.client-brand img{width:42px;height:42px;object-fit:contain}.client-wrap{width:min(1180px,94vw);margin:28px auto}.client-login-card{width:min(520px,94vw);margin:60px auto;background:#fff;border:1px solid #e5edf6;border-radius:28px;box-shadow:0 24px 70px rgba(15,23,42,.12);padding:34px}.portal-kicker{color:#2563eb;font-weight:800}.client-login-card h1{font-size:34px;font-weight:900}.portal-hero{background:linear-gradient(135deg,#0f172a,#2563eb);color:white;border-radius:30px;padding:34px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px;box-shadow:0 22px 60px rgba(37,99,235,.28)}.portal-hero h1{font-weight:900}.portal-stat,.portal-card{background:#fff;border:1px solid #e5edf6;border-radius:24px;padding:20px;box-shadow:0 14px 40px rgba(15,23,42,.07)}.portal-stat span{color:#64748b}.portal-stat b{display:block;font-size:30px}.ticket-list{display:flex;flex-direction:column;gap:10px}.ticket-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px;border:1px solid #e5edf6;border-radius:18px;text-decoration:none;color:#0f172a;background:#f8fafc}.ticket-row small{display:block;color:#64748b}.status-pill{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.status-open{background:#fee2e2;color:#b91c1c}.status-answered{background:#dbeafe;color:#1d4ed8}.status-closed{background:#dcfce7;color:#15803d}.attach-box{border:1px dashed #93c5fd;border-radius:18px;padding:20px;text-align:center;background:#f8fbff;cursor:pointer}.chat-shell{display:grid;grid-template-columns:300px 1fr;gap:18px;min-height:620px}.chat-info,.chat-panel{background:#fff;border:1px solid #e5edf6;border-radius:24px;box-shadow:0 14px 40px rgba(15,23,42,.07)}.chat-info{padding:22px}.chat-panel{display:flex;flex-direction:column;overflow:hidden}.chat-messages{height:520px;overflow:auto;padding:22px;background:linear-gradient(#f8fafc,#fff)}.msg{display:flex;margin-bottom:12px}.msg.mine{justify-content:flex-start}.msg.other{justify-content:flex-end}.bubble{max-width:72%;padding:12px 14px;border-radius:18px;background:#e2e8f0}.mine .bubble{background:#2563eb;color:#fff}.bubble p{white-space:pre-wrap;margin:0 0 6px}.bubble small{display:block;opacity:.75;font-size:11px}.msg-attach{display:inline-block;margin:4px 0;color:inherit;font-weight:800}.chat-send{display:flex;gap:10px;padding:14px;border-top:1px solid #e5edf6;background:#fff}.chat-send textarea{flex:1;border:1px solid #dbe3ef;border-radius:18px;padding:12px;resize:none;height:58px}.chat-send button{border:0;border-radius:18px;background:#2563eb;color:#fff;padding:0 24px;font-weight:900}.chat-file{width:54px;border-radius:18px;background:#f1f5f9;display:grid;place-items:center;cursor:pointer}@media(max-width:850px){.portal-hero,.chat-shell{display:block}.chat-info{margin-bottom:12px}.portal-hero .btn{margin-top:14px}.bubble{max-width:92%}}

/* ===== Professional support ticket chat update ===== */
.msg{display:flex;margin-bottom:14px;width:100%}
.msg.customer{justify-content:flex-end;text-align:right}
.msg.company{justify-content:flex-start;text-align:left;direction:ltr}
.msg.company .bubble{direction:rtl;text-align:right}
.msg.customer .bubble{background:linear-gradient(135deg,#0d6efd,#2563eb);color:#fff;border-radius:18px 18px 4px 18px;box-shadow:0 10px 24px rgba(13,110,253,.18)}
.msg.company .bubble{background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:18px 18px 18px 4px;box-shadow:0 10px 24px rgba(15,23,42,.06)}
.msg-sender{font-size:11px;font-weight:900;opacity:.78;margin-bottom:5px}.chat-image{display:block;max-width:260px;max-height:260px;border-radius:14px;margin-top:8px;object-fit:cover;border:1px solid rgba(255,255,255,.45)}
.ticket-owner{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:12px}.ticket-owner span{font-weight:900;color:#0f172a}.ticket-owner small{display:block;color:#64748b;margin-top:4px}.closed-box,.chat-closed-note,.rating-box{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:16px;padding:12px;font-weight:800}.chat-closed-note{text-align:center;margin:12px}.status-pending{background:#fef3c7;color:#92400e}
.ticket-alarm-box{position:fixed;z-index:9999;top:86px;left:24px;min-width:330px;max-width:430px;background:linear-gradient(135deg,#991b1b,#ef4444);color:#fff;border-radius:22px;padding:18px;display:none;align-items:center;gap:14px;box-shadow:0 24px 80px rgba(220,38,38,.45);animation:alarmPulse .7s infinite alternate}.ticket-alarm-box.show{display:flex}.ticket-alarm-box p{margin:2px 0 0;font-size:13px}.ticket-alarm-box a{margin-right:auto;background:#fff;color:#b91c1c;text-decoration:none;border-radius:14px;padding:9px 13px;font-weight:900;white-space:nowrap}.alarm-icon{font-size:34px;animation:alarmShake .3s infinite alternate}.ticket-sound-float{position:fixed;z-index:9998;left:24px;bottom:24px;border:0;border-radius:999px;background:#0f172a;color:#fff;padding:10px 14px;font-weight:900;box-shadow:0 14px 40px rgba(15,23,42,.25)}@keyframes alarmPulse{from{transform:scale(1);filter:brightness(1)}to{transform:scale(1.025);filter:brightness(1.12)}}@keyframes alarmShake{from{transform:rotate(-8deg)}to{transform:rotate(8deg)}}
@media(max-width:850px){.ticket-alarm-box{left:10px;right:10px;top:78px;min-width:auto}.ticket-sound-float{left:10px;bottom:10px}.chat-image{max-width:210px}}


/* ===== v6 fixes: split ticket chat bubbles right/left ===== */
.chat-messages{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
}
.chat-messages .msg{
  width:100%!important;
  display:flex!important;
  margin:0!important;
  clear:both!important;
}
.chat-messages .msg.customer{
  justify-content:flex-end!important;
  direction:rtl!important;
  text-align:right!important;
}
.chat-messages .msg.company{
  justify-content:flex-start!important;
  direction:rtl!important;
  text-align:right!important;
}
.chat-messages .msg .bubble{
  width:auto!important;
  max-width:min(72%, 560px)!important;
  min-width:120px!important;
  word-break:break-word!important;
}
.chat-messages .msg.customer .bubble{
  margin-right:0!important;
  margin-left:auto!important;
  background:linear-gradient(135deg,#0d6efd,#2563eb)!important;
  color:#fff!important;
  border:0!important;
  border-radius:18px 18px 4px 18px!important;
}
.chat-messages .msg.company .bubble{
  margin-right:auto!important;
  margin-left:0!important;
  background:#fff!important;
  color:#0f172a!important;
  border:1px solid #e2e8f0!important;
  border-radius:18px 18px 18px 4px!important;
}
.chat-messages .msg.customer .bubble small{color:rgba(255,255,255,.82)!important}
.chat-messages .msg.company .bubble small{color:#64748b!important}
@media(max-width:850px){
  .chat-messages .msg .bubble{max-width:88%!important}
}

/* Marketing management + grouped sidebar v71 */
.sidebar-groups{padding:8px 10px 24px}.menu-group{margin-bottom:7px}.menu-group-toggle{width:100%;border:0;background:transparent;color:inherit;border-radius:14px;padding:11px 12px;display:flex;align-items:center;justify-content:space-between;font-weight:900;text-align:right;transition:.2s}.menu-group-toggle:hover,.menu-group.open>.menu-group-toggle{background:rgba(255,255,255,.1)}.menu-icon{display:inline-flex;width:28px}.menu-arrow{font-size:18px;transition:.2s}.menu-group.open .menu-arrow{transform:rotate(180deg)}.menu-group-items{display:none;padding:5px 12px 3px 0}.menu-group.open .menu-group-items{display:block;animation:menuDrop .2s ease}.menu-group-items .nav-link{border-right:2px solid rgba(255,255,255,.16);border-radius:10px 0 0 10px;margin:3px 0;padding:9px 14px;font-size:14px}.logout-link{margin-top:14px}@keyframes menuDrop{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.project-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.project-launch-card{position:relative;overflow:hidden;text-decoration:none;color:#172033;background:linear-gradient(145deg,#fff,#f5fbff);border:1px solid #dfeaf5;border-radius:24px;padding:24px;min-height:175px;box-shadow:0 16px 40px rgba(15,23,42,.08);transition:.25s}.project-launch-card:before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;background:rgba(11,191,174,.11);left:-35px;top:-35px}.project-launch-card:hover{transform:translateY(-6px);box-shadow:0 24px 55px rgba(15,23,42,.14);color:#0f766e}.project-launch-card .project-icon{font-size:36px;margin-bottom:18px}.project-launch-card h4{font-weight:950}.social-links-table a{white-space:nowrap}.copy-icon-btn,.publish-toggle{border:0;border-radius:12px;padding:7px 10px;font-weight:900}.copy-icon-btn{background:#e0f2fe;color:#075985}.publish-toggle{background:#e2e8f0;color:#475569}.publish-toggle.done{background:#dcfce7;color:#15803d}.content-published>td{background:#ecfdf5!important}.design-thumb{width:88px;height:68px;object-fit:cover;border-radius:12px;border:1px solid #dbe3ef}.content-preview-card{border-radius:24px;background:#fff;border:1px solid #e2e8f0;padding:24px;box-shadow:0 20px 55px rgba(15,23,42,.12)}.content-preview-card img{max-width:100%;max-height:420px;border-radius:18px}.rich-editor{min-height:230px;border:1px solid #d8e3ef;border-radius:0 0 16px 16px;padding:16px;background:#fff;overflow:auto}.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:9px;background:#f8fafc;border:1px solid #d8e3ef;border-bottom:0;border-radius:16px 16px 0 0}.rich-toolbar button,.rich-toolbar select{border:1px solid #d8e3ef;background:#fff;border-radius:9px;padding:6px 9px;font-weight:800}.animate-fadeIn{animation:fadeIn .75s both}.animate-slideUp{animation:slideUp .75s both}.animate-slideRight{animation:slideRight .75s both}.animate-zoomIn{animation:zoomIn .75s both}.animate-bounceIn{animation:bounceIn .8s both}.animate-flipIn{animation:flipIn .8s both}.animate-pulse{animation:pulse 1.2s both}.animate-swing{animation:swing .9s both}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes slideUp{from{opacity:0;transform:translateY(35px)}to{opacity:1;transform:none}}@keyframes slideRight{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}@keyframes zoomIn{from{opacity:0;transform:scale(.75)}to{opacity:1;transform:none}}@keyframes bounceIn{0%{opacity:0;transform:scale(.5)}60%{transform:scale(1.08)}100%{opacity:1;transform:scale(1)}}@keyframes flipIn{from{opacity:0;transform:perspective(600px) rotateY(70deg)}to{opacity:1;transform:none}}@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}@keyframes swing{20%{transform:rotate(3deg)}40%{transform:rotate(-2deg)}60%{transform:rotate(1deg)}80%{transform:rotate(-1deg)}100%{transform:none}}

/* AWKAR real-estate branding */
:root{--awkar:#111111;--awkar-soft:#f6f2e9;--awkar-gold:#b79655;}
body{background:#f6f4ef}.sidebar{background:linear-gradient(180deg,#111,#1c1c1c)!important}.brand-title{color:#fff!important;letter-spacing:.5px}.sidebar .nav-link.active,.menu-group.open>.menu-group-toggle{background:linear-gradient(135deg,#b79655,#8f713a)!important;color:#fff!important}.btn-primary,.btn-success{background:#111!important;border-color:#111!important}.btn-outline-primary{color:#111!important;border-color:#111!important}.btn-outline-primary:hover{background:#111!important;color:#fff!important}.topbar{border-bottom:1px solid #e8dfcf}.realestate-page h3{font-weight:900}.filter-panel{background:linear-gradient(135deg,#faf7f0,#fff);border:1px solid #e9dfcc;border-radius:18px;padding:14px}.realestate-page table thead th{background:#161616!important;color:#fff!important;white-space:nowrap}.realestate-page .table{border-radius:14px;overflow:hidden}.placeholder-property{min-height:220px;display:flex;align-items:center;justify-content:center;text-align:center;border:2px dashed #d7c6a4;border-radius:20px;background:#fffaf0;color:#6f5b36;font-weight:800;padding:30px}.admin-logo{background:#fff;border-radius:12px;padding:4px;object-fit:contain}
