/* Almajad CRM 3.6.5 — responsive customer directory + elegant flat login. */
:root{--crm365-ink:#153c51;--crm365-blue:#1a5374;--crm365-mint:#0e8e94;--crm365-line:#dce8ed}
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:clip}
.app-body{background:radial-gradient(ellipse 34% 31% at 4% 0%,rgba(127,214,205,.14),transparent 95%),radial-gradient(ellipse 42% 44% at 100% 2%,rgba(147,193,229,.17),transparent 95%),linear-gradient(145deg,#f5f9fc,#eef5f8 55%,#f7f9fd)!important}
.app-layout,.workspace,.main-content,.main-content .panel,.table-scroll,.filter-results-head,.v33-board,.v33-board-list,.v33-board-detail{min-width:0!important;max-width:100%}
.workspace{flex:1 1 0!important}
.main-content .panel{overflow:visible}
.crm362-list-scroll{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible;scrollbar-width:thin;scrollbar-color:#96c9d4 #edf4f7;border-radius:14px;overscroll-behavior-inline:contain;scroll-padding-inline:10px}
.crm362-list-scroll:focus-visible{outline:2px solid #138a97;outline-offset:2px}
.crm362-customers{min-width:1040px!important;width:max-content;max-width:none;table-layout:auto}
.crm362-customers thead th{min-width:0!important;font-size:12px!important;padding:12px 11px!important}
.crm362-customers .crm362-data-row td{padding:13px 11px}
.crm362-customers .crm362-note{min-width:235px!important;max-width:350px!important;width:280px;font-size:14px!important;line-height:1.85!important;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.crm362-customers .crm365-note-content{display:-webkit-box;line-clamp:5;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;max-height:9.5em}
.crm362-customers .crm362-phone{font-size:17px;letter-spacing:0;padding:7px 9px}
.crm362-customers .crm362-name{min-width:128px;max-width:235px;overflow-wrap:anywhere}
.crm362-customers .crm365-row-actions{min-width:130px}
.crm362-customers .crm362-service{min-width:135px;max-width:240px}
.crm362-customers .crm362-date{font-size:13px;min-width:105px}
.crm362-customers thead th:nth-child(10){min-width:125px!important}
.crm362-customers .crm354-state{min-width:100px}
.crm362-filter-grid,.crm362-filter-form,.filter-results-actions,.filter-results-head{max-width:100%}
.crm362-filter-actions{flex-wrap:wrap}
.crm365-dashboard-welcome{background:linear-gradient(114deg,#163b55 0%,#1c5a71 58%,#167b83 100%)!important}
.crm365-dashboard-welcome h1{max-width:750px;overflow-wrap:anywhere}
.crm365-dashboard-welcome .crm365-spark{display:inline-block;color:#f9c88d}
.v33-queue-grid,.v33-home-kpis{max-width:100%;min-width:0}
.crm362-dialog{max-width:calc(100vw - 18px)!important}
.crm362-fields label[hidden],.crm362-fields [hidden]{display:none!important}
.crm362-actions{flex-wrap:wrap}
.crm362-fields input,.crm362-fields textarea,.crm362-fields select{font-size:16px}

/* LOGIN — calm editorial workspace instead of 3D floating objects. */
.login-body{background:radial-gradient(ellipse 45% 45% at 88% 15%,rgba(174,213,219,.32),transparent),linear-gradient(145deg,#eef5f7,#e8f0f5 61%,#f7f9fc)!important;min-height:100dvh}
.login-body::before{background:radial-gradient(circle at 1% 100%,rgba(15,146,155,.13),transparent 31%)!important}
.login-body .login-wrap.crm365-login-wrap{width:min(1080px,calc(100% - 40px));min-height:618px;grid-template-columns:minmax(0,1fr) minmax(0,.93fr);margin:clamp(18px,4vh,62px) auto;box-shadow:0 36px 78px -49px rgba(13,54,75,.36);border-radius:28px;border:1px solid #d8e7eb;overflow:hidden;background:#fff}
.login-body .login-card.crm365-login-card{background:linear-gradient(165deg,#fff 0%,#fbfdfe 85%);padding:clamp(25px,4.5vw,60px)!important;min-width:0}
.crm365-login-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.login-body .crm365-login-header .login-logo{max-width:148px;max-height:70px}
.crm365-workspace-badge{font:750 10px/1.5 system-ui,sans-serif;color:#4f8a99;letter-spacing:.09em;padding:8px 10px;border:1px solid #e4f0f2;border-radius:40px;background:#f4fafb;direction:ltr}
.login-body .crm365-login-card .login-intro{margin:32px 0 30px}
.login-body .crm365-login-card .login-intro .eyebrow{font-size:12px;letter-spacing:0;color:#13838d}
.login-body .crm365-login-card .login-intro h1{font-size:clamp(29px,3.2vw,42px);line-height:1.37;margin:11px 0 12px;color:#123a55;font-weight:900}
.login-body .crm365-login-card .login-intro p{font-size:15px;color:#657d89;max-width:410px;line-height:1.85}
.login-body .crm365-login-card .login-form label{display:block;color:#2f5264;font-size:13px;font-weight:800}
.login-body .crm365-login-card .input-wrap{border:1px solid #d4e3e9;background:#f7fafc;border-radius:15px;min-height:56px;display:flex;align-items:center;gap:10px;margin:9px 0 20px;overflow:hidden;padding:0 12px;transition:box-shadow .2s,border-color .2s,background .2s}
.login-body .crm365-login-card .input-wrap:focus-within{background:#fff;box-shadow:0 0 0 4px rgba(22,151,165,.13);border-color:#24a0a4}
.login-body .crm365-login-card .input-wrap input{min-width:0;flex:1 1 auto;display:block;margin:0;padding:14px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;font-size:16px!important;color:#17465c}
.crm365-eye{border:0;background:#e5f2f5;color:#225773;border-radius:10px;min-width:37px;height:37px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}
.crm365-eye:hover,.crm365-eye:focus-visible{background:#cae9eb;outline:2px solid #b0dae0;outline-offset:2px}
.login-body .crm365-login-card .login-form .crm365-submit{min-height:55px;background:linear-gradient(110deg,#1a5574,#0c828b)!important;border-radius:15px!important;font-weight:850;font-size:15px;display:flex;align-items:center;justify-content:center;gap:11px}
.login-body .crm365-login-card .login-footer{color:#8198a4;font-size:12px}
.login-body .crm365-aside{position:relative!important;overflow:hidden!important;min-height:618px;display:flex!important;align-items:flex-end!important;background:linear-gradient(150deg,#0c324e 0%,#11526a 53%,#12848a 130%)!important;color:#fff;isolation:isolate}
.crm365-aside-art{position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(circle at 40% 18%,rgba(129,225,220,.15),transparent 40%),linear-gradient(130deg,transparent 40%,rgba(255,255,255,.025) 40%,transparent 80%)}
.crm365-pattern-ring{position:absolute;width:440px;height:440px;border-radius:50%;border:1px solid rgba(187,249,246,.25);left:-130px;top:-160px;box-shadow:0 0 0 40px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.022),0 0 0 160px rgba(255,255,255,.015)}
.crm365-ring-two{left:auto;right:-200px;top:auto;bottom:-250px;width:520px;height:520px;opacity:.48}
.crm365-art-glow{position:absolute;width:320px;height:320px;right:-100px;top:-90px;border-radius:50%;filter:blur(15px);background:radial-gradient(circle,rgba(25,191,180,.26),transparent 72%)}
.crm365-mini-mark{font-size:130px;line-height:1;color:rgba(178,237,234,.10);position:absolute;top:12%;left:13%}
.login-body .crm365-aside .crm365-aside-content{position:relative;z-index:1;padding:clamp(30px,4.4vw,57px)!important;width:100%;background:linear-gradient(0deg,rgba(1,29,46,.4),transparent)}
.login-body .crm365-aside .crm365-aside-content .pill{border:1px solid rgba(191,239,239,.28);background:rgba(235,255,255,.1);color:#c5f1eb;font-size:11px;font-weight:850;letter-spacing:.12em}
.login-body .crm365-aside .crm365-aside-content h2{color:#fff;font-size:clamp(33px,3.3vw,49px);line-height:1.35;font-weight:900;margin:28px 0 16px}
.login-body .crm365-aside .crm365-aside-content h2 em{color:#b0f2e6;font-style:normal}
.login-body .crm365-aside .crm365-aside-content p{font-size:15px;line-height:1.95;color:#e3f4f4;max-width:390px}
.crm365-aside-metrics{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.crm365-aside-metrics span{font-size:12px;font-weight:750;padding:10px 13px;border-radius:11px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);color:#e7f7f6}
.login-body .crm365-login-wrap[data-theme="1"] .crm365-aside{background:linear-gradient(150deg,#13364b,#176073,#1b7f85 130%)!important}
.login-body .crm365-login-wrap[data-theme="2"] .crm365-aside{background:linear-gradient(150deg,#0d3856,#265872,#0e827c 130%)!important}
.login-body .crm365-login-wrap[data-theme="3"] .crm365-aside{background:linear-gradient(150deg,#16344c,#18687b,#237a84 130%)!important}

@media(max-width:1200px){.main-content{padding-inline:clamp(12px,2vw,24px)!important}}
@media(max-width:1000px){.crm362-customers{min-width:0!important;width:100%!important;border-collapse:separate!important;border-spacing:0 10px!important;display:block!important}.crm362-customers thead{display:none!important}.crm362-customers tbody{display:block!important}.crm362-customers tr.month-separator,.crm362-customers tr.day-separator{display:block!important;margin:12px 0 5px}.crm362-customers tr.month-separator td,.crm362-customers tr.day-separator td{display:block!important;width:100%!important;padding:10px 15px!important;text-align:right!important}.crm362-customers tr.crm362-data-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px;border:1px solid #dbe8ed;border-radius:18px;background:#fff;padding:13px 16px;box-shadow:0 9px 22px rgba(12,67,83,.045);width:100%;overflow:hidden}.crm362-customers tr.crm362-data-row:hover{transform:none}.crm362-customers .crm362-data-row td{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;width:auto!important;max-width:none!important;border:0!important;border-bottom:1px solid #edf2f5!important;border-radius:0!important;padding:9px 5px!important;text-align:right;overflow-wrap:anywhere}.crm362-customers .crm362-data-row td::before{content:attr(data-label);display:block;font-size:11px;font-weight:850;color:#77909b}.crm362-customers .crm362-data-row td.crm362-name{font-size:17px!important;min-width:0}.crm362-customers .crm362-data-row td.crm362-note{grid-column:1/-1;width:auto!important;min-width:0!important;font-size:14px!important;line-height:1.7!important}.crm362-customers .crm365-note-content{-webkit-line-clamp:unset;line-clamp:unset;max-height:none;display:block;white-space:normal}.crm362-customers .crm362-data-row td.crm365-row-actions{grid-column:1/-1;display:flex!important;flex-direction:row;align-items:center;justify-content:flex-start;gap:13px;flex-wrap:wrap;border-bottom:0!important}.crm362-customers .crm365-row-actions::before{display:none!important}.crm362-customers .crm365-row-actions .crm362-full-link{display:inline;margin:0}.crm362-list-scroll{overflow-x:hidden!important}.crm362-customers .crm362-phone{font-size:17px}.crm362-customers .crm362-date small{display:inline;margin:0 6px}.crm362-customers .crm362-data-row td.crm362-service{min-width:0}.crm362-dialog{max-height:calc(100dvh - 12px)!important}}
@media(max-width:850px){.login-body .login-wrap.crm365-login-wrap{max-width:540px;width:calc(100% - 24px);grid-template-columns:1fr!important;min-height:0;border-radius:24px;margin:12px auto 28px}.login-body .crm365-aside{min-height:245px!important}.login-body .crm365-aside .crm365-aside-content{padding:25px 32px!important}.login-body .crm365-aside .crm365-aside-content h2{font-size:27px;margin:13px 0 9px}.login-body .crm365-aside .crm365-aside-content p{font-size:13px;margin:0}.crm365-pattern-ring{width:260px;height:260px;top:-120px}.crm365-aside-metrics{margin-top:13px}.crm365-aside-metrics span{padding:7px 10px;font-size:11px}.login-body .crm365-login-card{padding:32px!important}.login-body .crm365-login-card .login-intro{margin:23px 0!important}.login-body .crm365-login-header .login-logo{max-height:58px}}
@media(max-width:600px){.crm362-customers tr.crm362-data-row{grid-template-columns:1fr!important;padding:10px 13px}.crm362-customers .crm362-data-row td{display:grid!important;grid-template-columns:minmax(68px,.34fr) minmax(0,1fr);gap:9px;align-items:center}.crm362-customers .crm362-data-row td::before{margin:0}.crm362-customers .crm362-data-row td.crm362-note,.crm362-customers .crm362-data-row td.crm365-row-actions{grid-column:1/-1;display:flex!important;flex-direction:column;align-items:stretch;gap:7px}.crm362-customers .crm365-row-actions .crm362-full-link{display:block;text-align:center;margin:0}.crm362-customers .crm365-row-actions .crm362-popup-open{width:100%}.crm362-customers .crm362-data-row td.crm362-note::before{align-self:start}.crm362-dialog{padding:15px!important;border-radius:14px!important}.crm362-overlay{padding:6px!important}.crm362-appointment{grid-template-columns:1fr}.crm362-fields{grid-template-columns:minmax(0,1fr)!important}.crm362-fields .crm362-wide{grid-column:1}.crm362-filter-grid{grid-template-columns:1fr!important}.crm365-dashboard-welcome{padding:22px!important}.crm365-dashboard-welcome h1{font-size:25px!important}.v33-welcome-buttons{display:flex;flex-wrap:wrap;gap:8px}.v33-welcome-buttons .btn{min-height:43px}}
@media(max-width:390px){.login-body .crm365-login-card{padding:22px!important}.login-body .crm365-login-card .login-intro h1{font-size:29px!important}.crm365-workspace-badge{font-size:9px}.crm362-customers .crm362-phone{font-size:15px;padding:6px}.crm362-customers .crm362-data-row td{grid-template-columns:minmax(60px,.32fr) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.crm365-aside-art,.crm365-dashboard-welcome,.crm365-submit{animation:none!important;transition:none!important}}

/* Clearly labeled 12-hour controls; both touch-friendly and desktop friendly. */
.crm365-time-picker{display:grid;grid-template-columns:minmax(75px,1fr) minmax(70px,.72fr) minmax(92px,1fr);gap:7px;direction:ltr;width:100%;min-width:0;margin-top:7px}
.crm365-time-picker>*{min-width:0;width:100%;padding:11px 7px!important;background:#fff;color:#173f53;border:1px solid #cadce6;border-radius:10px;font-size:15px;text-align:center}
.crm365-time-picker-datetime .crm365-time-day{grid-column:1/-1;direction:ltr;min-height:42px}
.crm365-time-picker select:focus-visible,.crm365-time-picker input:focus-visible{outline:2px solid #149da1;outline-offset:1px}
.crm365-time-picker select:disabled,.crm365-time-picker input:disabled{background:#edf2f4;opacity:.6}
#crm362-appointment-time{min-height:45px;font-size:16px;font-weight:750}
@media(max-width:370px){.crm365-time-picker{gap:4px;grid-template-columns:minmax(68px,1fr) minmax(58px,.7fr) minmax(88px,1fr)}.crm365-time-picker>*{font-size:14px;padding:10px 5px!important}}
