@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',Arial,sans-serif;color:#282723;background:#f6f5f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s}button:hover{filter:brightness(1.06)}button:active{transform:translateY(1px)}input,textarea,select{width:100%;border:1px solid #deddd7;border-radius:11px;padding:12px 14px;background:#fff;color:#282723;outline:none;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:#a78d73;box-shadow:0 0 0 3px #b69c7b22}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;font-weight:700;letter-spacing:.015em;margin:15px 0 7px;color:#5c574f}h1,h2,h3,h4{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.045em}h2{font-size:24px;margin:4px 0 20px}h3{font-size:17px}p{line-height:1.6}.shell{display:grid;grid-template-columns:252px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh;max-width:1700px;margin:auto}.top{grid-row:1/3;grid-column:1;background:#222b29;color:#fff;padding:38px 20px 24px;display:flex;flex-direction:column;justify-content:space-between;gap:28px;position:sticky;top:0;height:100vh}.brand-lockup{padding:0 14px}.brand{font-family:Georgia,'Times New Roman',serif;font-size:35px;font-weight:400;letter-spacing:5px;line-height:1.15}.brand-dot{color:#c8ad88}.sub{font-size:10px;letter-spacing:3px;color:#b7c1ba;margin-top:9px}.nav{grid-column:1;grid-row:1/3;z-index:1;align-self:start;position:sticky;top:156px;margin:0 14px;display:grid;gap:7px}.nav button{display:flex;align-items:center;gap:14px;text-align:left;width:100%;border:1px solid transparent;border-radius:11px;background:transparent;color:#c4cdc7;padding:14px 16px;font-size:14px;font-weight:600}.nav button:hover{background:#ffffff12}.nav button.active{background:#f1eee7;color:#29342f;box-shadow:0 6px 20px #00000012}.nav-symbol{font-size:21px;line-height:1;width:24px;text-align:center;font-weight:400}.sidebar-footer{display:grid;gap:9px;padding:18px 12px 0;border-top:1px solid #ffffff24}.account-label{font-size:10px;letter-spacing:1.6px;color:#a9b5ac}.account-email{font-size:12px;color:#e9ece7;overflow-wrap:anywhere}.sidebar-footer .ghost{background:#ffffff12;color:#fff;border-color:#ffffff24;text-align:left;margin-top:6px}main{grid-column:2;grid-row:1/3;min-width:0;padding:45px clamp(20px,4vw,64px) 60px}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:800;color:#9d8165}.dashboard-hero{background:#d9d0c1;min-height:232px;border-radius:20px;padding:40px;display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:32px;position:relative;overflow:hidden}.dashboard-hero:after{content:'';position:absolute;width:300px;height:300px;border:1px solid #ffffff66;border-radius:50%;right:-75px;top:-65px}.dashboard-hero h1{font-family:Georgia,serif;font-size:clamp(29px,3.1vw,44px);font-weight:400;letter-spacing:-1.5px;margin:12px 0}.dashboard-hero p{font-size:14px;color:#5f594f;margin:0}.hero-mark{font-family:Georgia,serif;font-size:130px;color:#ffffff8a;line-height:1;z-index:1}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2{margin:7px 0 0}.date-chip{background:white;border:1px solid #e8e5df;padding:9px 13px;border-radius:40px;color:#6f695f;font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border:1px solid #ebe8e2;border-radius:17px;padding:24px;box-shadow:0 8px 32px #222b2908}.grid>.card{min-height:160px}.metric-icon{font-size:24px;color:#a58d72;background:#f6f2ed;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;margin-bottom:17px}.metric{font-family:Manrope,sans-serif;font-size:clamp(23px,2.5vw,34px);font-weight:800;letter-spacing:-1.5px;margin:8px 0}.muted{color:#8a887f;font-size:13px}.quick-actions{margin-top:25px;padding:27px 30px;border:1px solid #e7e3dc;border-radius:17px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px}.quick-actions h3{margin:8px 0 4px}.quick-actions p{margin:0;font-size:13px;color:#88857e}.btn,button{border:1px solid transparent;border-radius:10px;padding:11px 17px;background:#293b35;color:white;font-size:13px;font-weight:700}.btn:disabled{opacity:.5}.ghost{background:white;color:#3b4942;border-color:#dcded9}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:14px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.wide{grid-column:1/-1}.item{border-bottom:1px solid #eeece8;padding:15px 0}.item:last-child{border:0}.item strong{font-size:14px}.link{background:transparent;color:#3c5347;padding:5px;text-align:left;text-decoration:underline}.pill{background:#f3eee7;border-radius:100px;padding:5px 9px;font-size:12px}.alert{padding:12px 14px;border-radius:10px;background:#fff3e6;color:#795123;margin:14px 0}.error{background:#fce9e7;color:#992f2f}.success{background:#eaf5e9;color:#2f6e3a}.auth{max-width:455px;margin:8vh auto;padding:40px!important}.auth .brand{color:#273a33}.auth .sub{color:#9b8a77}.auth h2{margin:35px 0 8px}.auth-intro{margin-top:22px;color:#8b877e;font-size:14px}.actions{display:flex;gap:8px;flex-wrap:wrap}.photos{display:flex;gap:8px;flex-wrap:wrap}.photos img{width:120px;height:120px;object-fit:cover;border-radius:10px}.loading{padding:40px;text-align:center}.hide{display:none}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:15px}.photo-card{display:flex;flex-direction:column;gap:8px;border:1px solid #e9e4de;border-radius:12px;padding:10px}.photo-card img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:8px}.photo-card button{align-self:flex-start}#photoStatus{margin-top:12px;font-size:13px}
@media(max-width:1000px){.shell{grid-template-columns:210px minmax(0,1fr)}.top{padding:32px 12px 20px}.nav{margin:0 10px}.brand{font-size:29px}.grid{gap:12px}.card{padding:19px}main{padding:32px 22px}.dashboard-hero{padding:30px}}
@media(max-width:720px){.shell{display:block;min-height:100vh}.top{position:relative;height:auto;min-height:0;padding:20px 18px 14px;flex-direction:row;align-items:center}.brand-lockup{padding:0}.brand{font-size:27px}.sub{font-size:8px;letter-spacing:2px;margin-top:5px}.sidebar-footer{border:0;padding:0;display:flex;align-items:center}.account-label,.account-email{display:none}.sidebar-footer .ghost{font-size:12px;margin:0;padding:9px 12px}.nav{position:sticky;top:0;background:#222b29;display:flex;overflow-x:auto;scrollbar-width:none;margin:0;padding:4px 10px 12px;gap:5px;z-index:10}.nav::-webkit-scrollbar{display:none}.nav button{flex:1;justify-content:center;white-space:nowrap;padding:11px 10px;font-size:12px;gap:6px}.nav-symbol{font-size:16px;width:auto}main{padding:22px 14px 42px}.dashboard-hero{min-height:190px;padding:25px 23px;border-radius:16px}.dashboard-hero h1{font-size:30px}.dashboard-hero p{font-size:12px}.hero-mark{font-size:70px}.grid,.grid.two{grid-template-columns:1fr}.grid>.card{min-height:0}.formgrid{grid-template-columns:1fr}.card{padding:18px}.quick-actions{padding:22px;align-items:flex-start;flex-direction:column}.row{flex-wrap:wrap}.auth{margin:6vh 14px;padding:26px!important}.section-heading h2{font-size:21px}}

/* TAJMA V4 – fotografija salona i premium karton klijentice */
.dashboard-hero{background:linear-gradient(90deg,rgba(229,218,205,.98) 0%,rgba(229,218,205,.95) 36%,rgba(229,218,205,.54) 62%,rgba(229,218,205,.05) 100%),url('salon-hero.jpg') center right/cover no-repeat;min-height:265px}
.dashboard-hero:after{display:none}.dashboard-hero>div:first-child{position:relative;z-index:1;max-width:570px}.dashboard-hero h1{max-width:490px;font-size:clamp(30px,3.1vw,43px);line-height:1.12}.dashboard-hero p{max-width:390px;color:#51483f}
.page-head{margin-bottom:18px}.page-head h2{margin:7px 0 0;font-size:29px}.client-layout{display:grid;grid-template-columns:minmax(255px,320px) minmax(0,1fr);gap:18px;align-items:start}.client-directory{padding:21px}.client-detail{padding:28px;min-height:440px}.search-label{margin:0 0 10px;color:#9d8165;letter-spacing:1.5px;font-size:10px}.client-directory .item{gap:6px}.client-directory .item strong{font-size:13px}.client-directory .ghost{padding:9px 10px}.empty-state{text-align:center;padding:85px 15px}.empty-state>span{font-size:42px;color:#b59b7e}.empty-state h3{font-size:21px}.profile-top{display:flex;align-items:center;gap:16px}.avatar{width:65px;height:65px;flex:0 0 65px;border-radius:20px;background:linear-gradient(145deg,#e7d5c1,#c6a78b);color:#473827;display:grid;place-items:center;font:36px Georgia,serif}.profile-identity{min-width:0}.profile-identity h2{font:normal 30px Georgia,serif;letter-spacing:-.5px;margin:6px 0}.profile-actions{margin:22px 0}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-stats>div{background:#f7f4f0;border:1px solid #eee8e1;border-radius:13px;padding:15px 13px;display:flex;flex-direction:column;gap:9px}.profile-stats span{font-size:9px;font-weight:800;letter-spacing:1px;color:#96836f}.profile-stats strong{font-size:clamp(14px,1.5vw,19px);color:#293b35;overflow-wrap:anywhere}.profile-notes{background:#faf9f7;border:1px solid #eee9e2;border-radius:13px;margin-top:18px;padding:18px}.profile-notes p{font-size:13px;margin:10px 0 0;white-space:pre-wrap}.history-heading{margin-top:26px}.history-heading h3{margin:8px 0 10px;font-size:20px}.history-count{background:#eee9e1;border-radius:50px;padding:3px 9px;font-size:12px;color:#6d5a48}.visit-record{display:flex;align-items:center;gap:14px;border-top:1px solid #eeeae4;padding:15px 0}.visit-date{background:#f4ede4;color:#6c5034;border-radius:10px;padding:10px;min-width:92px;text-align:center;font-size:12px;font-weight:800}.visit-record-main{display:grid;gap:5px;flex:1;min-width:0}.visit-record-main strong{font-size:13px}.visit-record .ghost{padding:9px 11px;white-space:nowrap}.visit-subtitle{color:#9d8165;margin:-12px 0 22px}.photos-heading{margin-top:24px}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}.photo-card{background:#faf8f5}.photo-card img{aspect-ratio:4/5}
@media(max-width:1150px){.client-layout{grid-template-columns:minmax(220px,270px) minmax(0,1fr)}.client-detail{padding:19px}.profile-stats{grid-template-columns:1fr 1fr}.profile-stats>div:last-child{grid-column:1/-1}}
@media(max-width:850px){.client-layout{grid-template-columns:1fr}.client-directory{max-height:290px;overflow:auto}.client-detail{min-height:250px}.profile-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-stats>div:last-child{grid-column:auto}}
@media(max-width:720px){.dashboard-hero{background:linear-gradient(90deg,rgba(230,220,207,.98) 0%,rgba(230,220,207,.9) 45%,rgba(230,220,207,.42) 100%),url('salon-hero.jpg') center right/cover no-repeat;min-height:215px}.dashboard-hero h1{font-size:29px;max-width:275px}.dashboard-hero p{max-width:230px}.profile-stats{grid-template-columns:1fr 1fr}.profile-stats>div:last-child{grid-column:1/-1}.visit-record{flex-wrap:wrap}.visit-record .ghost{margin-left:auto}.profile-identity h2{font-size:25px}.client-detail{padding:17px}}

/* TAJMA V5 — editorial salon dashboard and client dossier */
body{background:#f5f0eb;color:#222622}
.shell{grid-template-columns:282px minmax(0,1fr)}
.top,.nav{background:#122b24}.top{padding:28px 22px 20px}.nav{margin:0;padding:12px 17px}.brand-lockup{text-align:center}.brand-wave{font:36px Georgia,serif;color:#cfa678;line-height:.7;margin-bottom:18px}.brand{font-family:Georgia,serif;font-size:40px;letter-spacing:6px}.brand-dot{color:#caa67d}.sub{letter-spacing:4px;color:#e6d5bd}.nav button{padding:15px 18px;font-size:15px;color:#eee7dc}.nav button.active{background:#f5eae0;color:#1a2d25}.sidebar-footer{padding:20px 6px 0}
main{padding:0 0 60px;background:linear-gradient(160deg,#eee3d9,#f8f4f0 65%)}
.dashboard-hero{border-radius:0;margin:0;min-height:410px;padding:55px clamp(28px,5vw,75px) 115px;background:linear-gradient(90deg,rgba(67,47,36,.55),rgba(67,47,36,.18) 55%,transparent 85%),url('salon-hero.jpg') center right/cover no-repeat;align-items:flex-start}
.dashboard-hero .eyebrow{color:#fff;letter-spacing:4px;font-size:12px}.dashboard-hero h1{font:normal clamp(36px,4.1vw,65px)/1.08 Georgia,serif;color:white;max-width:760px;letter-spacing:-1.5px;margin:18px 0}.dashboard-hero h1 em{font-style:italic;font-weight:400;display:inline-block;padding-left:35px}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));position:relative;margin:-95px 32px 0;gap:16px}.dashboard-metrics .card{background:#fffaf6ed;backdrop-filter:blur(10px);border-color:#fff7ef;box-shadow:0 12px 32px #35261d16;min-height:124px;padding:20px 22px}.dashboard-metrics .metric-icon{float:left;margin:0 16px 0 0;border-radius:50%;font-size:24px;width:49px;height:49px;color:#775635;background:#efe3d8}.metric-label{font-size:13px;color:#775b47;margin-top:5px}.dashboard-metrics .metric{font-size:clamp(21px,2vw,31px);margin:6px 0 0;white-space:nowrap}.quick-actions{margin:36px 32px 0}
.profile-page{padding:32px clamp(20px,3vw,46px)}.profile-page-head{margin-bottom:23px}.profile-page-head h1{font:normal clamp(29px,3vw,42px) Georgia,serif;margin:9px 0 0}.back-link{background:none;border:0;color:#795b39;padding:0;font-size:14px}.profile-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start}.profile-aside{display:grid;gap:13px}.profile-person,.profile-summary{background:#fffaf7;border:1px solid #eee2d7;border-radius:18px;padding:20px}.profile-person-top{display:flex;align-items:center;gap:14px}.profile-person h2{font-size:19px;margin:0 0 6px}.profile-person p{margin:0;font-size:12px;color:#6c625b}.profile-person .avatar{width:67px;height:67px;flex-basis:67px;border-radius:50%}.profile-edit{display:block;width:100%;margin-top:20px}.profile-summary h3{font-size:16px;margin:0 0 18px}.profile-summary>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-top:13px}.profile-summary strong{font-size:14px}.profile-content{min-width:0}.profile-tabs{display:flex;justify-content:space-between;gap:5px;background:#fffaf7;border:1px solid #eee2d7;border-radius:16px;padding:6px;margin-bottom:15px;overflow-x:auto}.profile-tabs button{background:transparent;color:#332e29;border:0;border-radius:11px;white-space:nowrap;padding:13px 10px;font-size:13px}.profile-tabs button span{font-size:18px;margin-right:8px;color:#977653}.profile-tabs button.active{background:#173c2c;color:white}.profile-tabs button.active span{color:#f2e6d8}.profile-visit{display:flex;align-items:center;gap:18px;padding:15px;background:#fffaf7;border:1px solid #eee2d7;border-radius:17px;margin-bottom:11px;min-height:110px}.profile-date{background:#f1e6dc;color:#6c4d30;border-radius:13px;min-width:76px;padding:12px 8px;display:flex;align-items:center;flex-direction:column}.profile-date strong{font:28px Georgia,serif}.profile-date span{font-weight:800;font-size:12px}.profile-date small{font-size:11px}.profile-visit-info{flex:1;min-width:0}.visit-service-name{font-size:15px}.visit-formula-preview{font-size:12px;color:#7c726b;margin-top:8px;line-height:1.5}.visit-price{white-space:nowrap;font-size:15px}.visit-thumbs{display:flex;gap:5px}.visit-thumbs img{width:61px;height:72px;object-fit:cover;border-radius:10px}.visit-open{background:none;color:#392e25;font-size:24px;padding:6px}.profile-section{background:#fffaf7;border:1px solid #eee2d7;border-radius:18px;padding:24px}.profile-section h3{margin-top:0}.profile-list-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid #e9dfd5}.profile-note-text{white-space:pre-wrap;line-height:1.7}.profile-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}.profile-photo-grid img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px}.formula-card{background:white;border:1px solid #eee2d7;border-radius:12px;padding:15px;margin-bottom:10px}.formula-card p{margin:10px 0}.formula-card button{display:block;margin-top:12px}
@media(max-width:1150px){.shell{grid-template-columns:225px minmax(0,1fr)}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-layout{grid-template-columns:240px minmax(0,1fr)}.profile-tabs{justify-content:flex-start}.profile-tabs button{padding:11px 13px}.visit-thumbs img{width:45px;height:55px}}
@media(max-width:850px){.profile-layout{grid-template-columns:1fr}.profile-aside{grid-template-columns:1fr 1fr}.profile-visit{flex-wrap:wrap}.visit-price{margin-left:auto}}
@media(max-width:720px){.shell{display:block}.top{padding:15px}.brand-wave{display:none}.brand{font-size:27px}.nav{padding:5px 10px 10px}.dashboard-hero{min-height:310px;padding:32px 22px 105px;background-position:65% center}.dashboard-hero h1{font-size:35px}.dashboard-hero h1 em{padding-left:0}.dashboard-metrics{margin:-78px 12px 0;gap:8px}.dashboard-metrics .card{padding:15px;min-height:108px}.dashboard-metrics .metric-icon{float:none;margin:0 0 8px;width:35px;height:35px;font-size:18px}.dashboard-metrics .metric{font-size:21px}.metric-label{font-size:11px}.quick-actions{margin:20px 12px}.profile-page{padding:20px 12px}.profile-aside{grid-template-columns:1fr}.profile-page-head h1{font-size:30px}.profile-tabs button{font-size:12px}.profile-visit{gap:10px;padding:12px}.visit-price{font-size:13px}.visit-thumbs{order:5;width:100%;padding-left:86px}.visit-thumbs img{width:65px;height:70px}.visit-open{margin-left:auto}}

/* V6: reference layout and elegant hair-strand emblem */
.brand-wave{height:40px;display:flex;justify-content:center;align-items:center;margin:0 0 9px;line-height:1}
.brand-wave svg{display:block;max-width:116px}
.profile-layout{display:grid!important;grid-template-columns:minmax(260px,305px) minmax(0,1fr)!important;gap:18px;align-items:start}
.profile-aside{grid-column:1;grid-row:1}
.profile-content{grid-column:2;grid-row:1;min-width:0}
.profile-tabs{gap:3px}
.profile-tabs button{font-size:12px;padding:12px 8px}
.profile-tabs button span{font-size:16px;margin-right:5px}
@media(max-width:1050px){.profile-layout{grid-template-columns:minmax(215px,260px) minmax(0,1fr)!important}.profile-tabs{flex-wrap:wrap;justify-content:flex-start}}
@media(max-width:850px){.profile-layout{grid-template-columns:minmax(0,1fr)!important}.profile-aside{grid-column:1;grid-row:1;grid-template-columns:1fr 1fr}.profile-content{grid-column:1;grid-row:2}}
@media(max-width:550px){.profile-aside{grid-template-columns:1fr}.profile-tabs{flex-wrap:nowrap;overflow-x:auto}.profile-visit{align-items:flex-start}}

/* V7 — clear before/after thumbnails, consistent icons, enlarged image preview */
.ui-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.nav-symbol{display:inline-flex;align-items:center;justify-content:center;width:25px}
.profile-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.profile-tabs button span{display:inline-flex;align-items:center;margin:0}
.profile-tabs button span .ui-icon{width:18px;height:18px}
.profile-visit{gap:16px;min-height:134px;padding:16px 18px}
.profile-visit-info{min-width:140px;line-height:1.45}
.visit-formula-preview{font-size:13px;line-height:1.55;max-width:400px;overflow-wrap:anywhere}
.visit-thumbs{display:flex;gap:9px;align-items:center;flex-shrink:0}
.photo-preview{background:transparent;border:0;padding:0;display:flex;flex-direction:column;gap:5px;align-items:center;color:#76583f;cursor:zoom-in;min-width:0}
.visit-thumbs .photo-preview img{width:90px;height:100px;object-fit:cover;border-radius:10px;border:1px solid #e5d7c8;display:block}
.photo-preview span{font-size:10px;font-weight:800;letter-spacing:1.2px}
.profile-photo-grid .photo-preview img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;border-radius:11px}
.photo-grid .photo-preview img{width:100%;max-height:360px;object-fit:contain;border-radius:11px}
.tajma-lightbox{border:0;border-radius:18px;padding:18px;background:#fffaf6;max-width:min(94vw,980px);max-height:94vh;box-shadow:0 30px 90px #0006}
.tajma-lightbox::backdrop{background:#091913d9}
.tajma-lightbox img{display:block;max-width:100%;max-height:80vh;margin:auto;object-fit:contain;border-radius:9px}
.lightbox-close{display:block;margin:0 0 12px auto;background:#173c2c;color:white;border-radius:10px;padding:9px 15px}
@media(max-width:1300px){.visit-thumbs .photo-preview img{width:72px;height:86px}}
@media(max-width:1100px){.profile-visit{flex-wrap:wrap}.visit-thumbs{margin-left:auto}.visit-thumbs .photo-preview img{width:90px;height:100px}}
@media(max-width:720px){.profile-visit{gap:12px}.visit-thumbs{width:auto;order:initial;padding-left:0;margin-left:0}.visit-thumbs .photo-preview img{width:76px;height:88px}.profile-visit-info{min-width:calc(100% - 110px)}.visit-price{margin-left:0}}

/* Brisanje posjete */
.visit-footer-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;flex-wrap:wrap}
.visit-delete-button{background:transparent;border:1px solid #b35d58;color:#a33d37;border-radius:10px;padding:11px 16px;cursor:pointer;font:inherit}
.visit-delete-button:hover{background:#fff0ef}
.visit-delete-button:disabled{opacity:.55;cursor:wait}

/* TAJMA V9 */
.v9-client-delete{width:100%;margin-top:9px}.v9-last-visit{font-size:12px;margin-top:4px}
.v9-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0 22px}
.v9-date-filter,.v9-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.v9-date-filter{grid-template-columns:1fr 1fr auto}.v9-date-filter button{height:44px}
.v9-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.v9-section{margin:18px 0}.v9-scroll{overflow-x:auto}.v9-table{width:100%;border-collapse:collapse;min-width:560px}
.v9-table th,.v9-table td{text-align:left;border-bottom:1px solid #e9e1d8;padding:11px 10px;font-size:13px}
.v9-table .right{text-align:right}.v9-backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.v9-security-tip{margin:20px 0;color:#74533d}.v9-editor-section{border-top:1px solid #e8ded4;padding-top:18px;margin-top:20px}
.v9-entry-row{background:#faf7f2;border:1px solid #e8ded4;border-radius:12px;padding:14px;margin:10px 0}
.v9-entry-row .v9-remove-row{margin-top:10px}.v9-pay-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.v9-form-message{margin:12px 0;color:#1f6542;font-size:13px}.v9-form-message.error-text{color:#a13d35}
@media(max-width:950px){.v9-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.v9-date-filter,.v9-entry-grid,.v9-pay-grid,.v9-backup-grid{grid-template-columns:1fr}.v9-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* TAJMA V9.2 — phone-first interface, desktop layout unchanged */
@media (max-width: 720px) {
 html,body{width:100%;max-width:100%;overflow-x:hidden;-webkit-text-size-adjust:100%}
 .shell{width:100%;min-width:0;display:block;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .top{position:relative;z-index:2;padding:14px 16px;background:#122b24;min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:10px}
 .brand-lockup{text-align:left}.brand{font-size:27px;letter-spacing:3px}.sub{letter-spacing:2.5px;font-size:8px}
 .sidebar-footer{flex-shrink:0}.sidebar-footer .ghost{padding:9px 11px;font-size:12px;min-height:42px}
 .nav{position:fixed;top:auto;bottom:0;left:0;right:0;z-index:100;background:#122b24;margin:0;padding:8px 5px calc(8px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;overflow:visible;box-shadow:0 -8px 25px #10271f24;border-top:1px solid #ffffff24}
 .nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;min-height:55px;padding:6px 1px;border-radius:10px;font-size:10px;line-height:1.15;white-space:normal;text-align:center;color:#e8e3da}
 .nav button.active{background:#f5eae0;color:#17372a}.nav-symbol{width:24px;height:24px;font-size:20px}.nav-symbol .ui-icon{width:22px;height:22px}
 main{width:100%;min-width:0;padding:0 0 20px}.profile-page{padding:18px 12px 24px}.page-head{padding:16px 14px 0;align-items:center}.page-head h2{font-size:25px}.page-head button{min-height:44px}
 .dashboard-hero{min-height:245px;padding:24px 18px 82px;margin-bottom:0;border-radius:0;background-position:65% center}.dashboard-hero h1{font-size:clamp(26px,8vw,34px);line-height:1.2;max-width:270px}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:-53px 12px 0;position:relative;z-index:1;gap:10px}
 .dashboard-metrics .card{min-width:0;padding:16px 13px;border-radius:15px}.dashboard-metrics .metric{font-size:clamp(17px,5.2vw,25px);overflow-wrap:anywhere;letter-spacing:-.7px}.metric-label{line-height:1.35}
 .quick-actions{margin:16px 12px 0;padding:18px}.quick-actions button{width:100%;min-height:46px}
 .client-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:0 12px}.client-directory{max-height:none;overflow:visible;padding:15px}.client-detail{padding:15px;min-height:0}.client-directory .item{align-items:center}.client-directory .item>div{min-width:0;overflow-wrap:anywhere}.client-directory .item button{flex-shrink:0;min-height:44px}
 .profile-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px}.profile-aside{grid-column:1;grid-row:1;grid-template-columns:1fr}.profile-content{grid-column:1;grid-row:2;min-width:0}.profile-page-head{gap:10px;align-items:center}.profile-page-head h1{font-size:27px}.profile-page-head>button{min-height:44px}
 .profile-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;justify-content:flex-start;gap:5px;padding:5px 1px 9px}.profile-tabs button{flex:0 0 auto;min-height:43px;padding:9px 12px;font-size:12px;white-space:nowrap}
 .profile-visit{padding:14px 12px;gap:10px;align-items:flex-start}.profile-visit-info{min-width:0;flex:1 1 170px;overflow-wrap:anywhere}.visit-thumbs{width:100%;flex-wrap:wrap;gap:8px}.visit-thumbs .photo-preview img{width:74px;height:86px}.visit-price{margin-left:0}.visit-open{min-height:42px}
 .row{gap:10px}.row>div{min-width:0}.card{min-width:0}.actions{gap:9px}.actions button{min-height:44px}.formgrid,.v9-date-filter,.v9-entry-grid,.v9-pay-grid,.v9-backup-grid{grid-template-columns:minmax(0,1fr)}
 input,textarea,select{font-size:16px;max-width:100%;min-height:44px}button{touch-action:manipulation}label{font-size:13px}
 .v9-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v9-metrics .card{padding:14px 11px}.v9-metrics .metric{font-size:clamp(17px,5vw,25px);overflow-wrap:anywhere}
 .v9-section,.finance-filter{margin:12px}.v9-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.v9-table{min-width:520px}.v9-shortcuts button{flex:1 1 auto;min-height:43px}
 .photo-grid,.profile-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-card{min-width:0}.photo-card img{max-width:100%}
 .auth{margin:20px 12px;padding:24px 18px!important}.tajma-lightbox{max-width:96vw;max-height:90dvh;padding:12px}.tajma-lightbox img{max-height:74dvh}
}
@media (max-width: 370px) {
 .nav button{font-size:9px}.nav-symbol{width:20px;height:20px}.nav-symbol .ui-icon{width:20px;height:20px}
 .top{padding:12px}.brand{font-size:24px}.sidebar-footer .ghost{font-size:11px;padding:8px}
 .profile-page-head h1{font-size:23px}.dashboard-metrics .metric{font-size:18px}
}

/* V9.3: compact phone client profile; desktop remains unchanged */
.client-danger-menu{margin-top:12px}
.client-danger-menu summary{cursor:pointer;font-size:12px;color:#856c5b;text-align:center;padding:8px;list-style:revert}
.client-danger-menu .v9-client-delete{width:100%;margin-top:8px}
@media(max-width:720px){
 .profile-page{padding:12px 10px 20px}
 .profile-page-head{margin-bottom:12px}
 .profile-page-head h1{font-size:23px;margin-top:3px}
 .profile-page-head>button{font-size:12px;padding:9px 12px}
 .profile-layout{gap:10px}.profile-aside{gap:9px}
 .profile-person{padding:14px;border-radius:15px}
 .profile-person-top{gap:11px}.profile-person .avatar{width:48px;height:48px;flex-basis:48px;font-size:25px}
 .profile-person h2{font-size:19px;margin-bottom:3px}.profile-person p{font-size:12px}
 .profile-edit{margin-top:12px;min-height:42px;padding:9px}
 .client-danger-menu{margin-top:4px}.client-danger-menu summary{padding:5px}
 .profile-summary{padding:12px 13px;border-radius:15px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .profile-summary h3{grid-column:1/-1;font-size:13px;margin:0 0 1px}
 .profile-summary>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;margin:0;padding:10px;background:#f3eae2;border-radius:10px;min-width:0;font-size:11px}
 .profile-summary strong{font-size:16px;overflow-wrap:anywhere}
 .profile-tabs{margin-bottom:10px;gap:6px;padding:4px 2px 8px;scroll-snap-type:x proximity}
 .profile-tabs button{scroll-snap-align:start;min-height:40px;padding:8px 10px}
 .profile-visit{min-height:0;padding:11px;gap:9px;align-items:flex-start}
 .profile-date{min-width:55px;padding:8px 5px;border-radius:10px}
 .profile-date strong{font-size:23px}.profile-date span{font-size:11px}.profile-date small{font-size:10px}
 .profile-visit-info{flex:1 1 110px;min-width:0}
 .visit-thumbs{width:100%;order:5;padding-left:0;gap:8px}
 .visit-thumbs .photo-preview img{width:82px;height:94px}
 .visit-price{margin-left:auto;font-size:13px}
 .nav{padding-top:5px;padding-bottom:calc(5px + env(safe-area-inset-bottom,0px))}
 .nav button{min-height:49px;padding:5px 1px;font-size:10px}.nav-symbol{height:20px}.nav-symbol .ui-icon{width:20px;height:20px}
 .shell{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
}

/* TAJMA V9.4 — phone-only refinements; desktop untouched */
@media (max-width:720px){
  /* Preserve the salon photograph as a shorter editorial hero. */
  .dashboard-hero{min-height:218px;padding:22px 17px 62px;background-image:linear-gradient(90deg,rgba(26,30,26,.76) 0%,rgba(26,30,26,.42) 53%,rgba(26,30,26,.08) 100%),url('salon-hero.jpg');background-position:60% 45%;background-size:cover}
  .dashboard-hero h1,.dashboard-hero h1 em{font-size:clamp(25px,7.2vw,31px);line-height:1.12;color:#fff;max-width:280px;text-shadow:0 2px 10px #0005}
  .dashboard-hero p,.dashboard-hero .eyebrow{color:#fff3e5}
  .dashboard-metrics{margin:-38px 11px 0;gap:8px}
  .dashboard-metrics .card{padding:11px 12px;min-height:89px}
  .dashboard-metrics .metric-icon{width:27px;height:27px;font-size:15px;margin-bottom:4px}
  .dashboard-metrics .metric{font-size:clamp(17px,5vw,23px);margin:4px 0 0}
  .metric-label{font-size:11px}
  .quick-actions{margin:12px 11px 0;padding:13px 14px;gap:8px}
  .quick-actions h3{font-size:16px;margin:3px 0}
  .quick-actions p{font-size:12px}
  .quick-actions .eyebrow{font-size:9px}
  .quick-actions button{min-height:42px}
  /* Directory: show the list, not a giant empty detail placeholder. */
  .client-layout:has(.client-detail .empty-state) .client-detail{display:none}
  .client-layout{gap:8px;padding:0 10px}
  .client-directory{padding:13px 14px}
  .client-directory .item{padding:10px 0;gap:8px}
  .client-directory .item button{padding:8px 10px;min-height:40px}
  .page-head{padding:12px 12px 0;gap:8px;margin-bottom:9px}
  .page-head h2{font-size:23px}
  .page-head button{font-size:12px;padding:10px 11px;min-height:40px}
  .search-label{font-size:9px;margin-bottom:6px}
  .client-directory input{min-height:42px;padding:9px 12px}
  /* All five profile sections fit on screen, no horizontal swipe. */
  .profile-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;overflow:visible!important;padding:5px;margin-bottom:10px;scroll-snap-type:none}
  .profile-tabs button{min-width:0;min-height:52px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;white-space:normal!important;line-height:1.13;font-size:11px;padding:6px 3px;overflow-wrap:anywhere;text-align:center}
  .profile-tabs button span{margin:0}.profile-tabs button span .ui-icon{width:17px;height:17px}
  .profile-visit{min-height:0}
  /* Finance: more information above the fold. */
  .finance-filter{padding:13px;margin:10px}
  .finance-filter h3{margin:0 0 7px;font-size:16px}
  .finance-filter label{margin:7px 0 4px}
  .finance-filter input{min-height:42px}
  .v9-shortcuts{gap:5px;flex-wrap:nowrap}
  .v9-shortcuts button{padding:8px 5px;font-size:11px;min-height:39px}
  .v9-metrics{gap:7px;margin:10px}
  .v9-metrics .card{padding:11px 10px}
  .v9-metrics .metric{font-size:clamp(17px,4.8vw,23px)}
  .v9-section{margin:10px;padding:14px}
  .nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
  .nav button{min-height:47px}
}
@media(max-width:370px){.profile-tabs button{font-size:10px}.dashboard-hero{background-position:63% center}}

/* V9.5 compact visits and finance on phones */
.visit-list-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:0;border-bottom:1px solid #ebe3db;background:transparent;color:inherit;border-radius:0;padding:14px 4px;cursor:pointer}.visit-list-item:last-child{border-bottom:0}.visit-list-item:focus-visible{outline:2px solid #1b4938;outline-offset:2px;border-radius:8px}.visit-list-icon{display:flex;align-items:center;justify-content:center;flex:0 0 39px;width:39px;height:39px;border-radius:11px;background:#f2e8df;color:#9a795c}.visit-list-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.visit-list-info strong{font-size:15px}.visit-list-info .muted{font-size:12px}.visit-list-right{display:flex;align-items:center;gap:10px;flex-shrink:0}.visit-list-right strong{font-size:13px;white-space:nowrap}.visit-list-arrow{font-size:25px;line-height:1;color:#937d6d}
@media(max-width:720px){.visits-page-head{margin-bottom:9px}.visits-directory{margin:0 10px;padding:8px 13px;border-radius:16px}.visit-list-item{gap:9px;padding:12px 1px;min-height:62px}.visit-list-icon{flex-basis:34px;width:34px;height:34px}.visit-list-info strong{font-size:14px}.visit-list-info .muted{font-size:11px;line-height:1.4}.visit-list-right{gap:5px}.visit-list-right strong{font-size:12px}.v9-section .v9-scroll{overflow-x:visible}.v9-section .v9-table{min-width:0;width:100%;table-layout:auto}.v9-section .v9-table th,.v9-section .v9-table td{padding:10px 5px;font-size:12px;overflow-wrap:anywhere}.v9-section .v9-table th:first-child,.v9-section .v9-table td:first-child{padding-left:0}.v9-section .v9-table th:last-child,.v9-section .v9-table td:last-child{padding-right:0}.v9-section:has(.v9-table th:nth-child(5)) .v9-table thead{display:none}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;border-bottom:1px solid #e9e1d8;padding:10px 0}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td{display:block;border:0;padding:0;font-size:12px}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td:nth-child(1){grid-column:1;grid-row:1;color:#756b63}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td:nth-child(2){grid-column:1;grid-row:2;font-weight:600}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td:nth-child(3){grid-column:1;grid-row:3;color:#756b63}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td:nth-child(4){grid-column:1;grid-row:4;color:#756b63}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td:nth-child(5){grid-column:2;grid-row:1 / span 4;align-self:center;white-space:nowrap;text-align:right}.v9-section:has(.v9-table th:nth-child(5)) .v9-table tbody td[colspan]{grid-column:1/-1}}

/* V9.6: explicit mobile camera/gallery selection */
.photo-pick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.photo-pick-btn{min-height:48px;padding:11px 9px;white-space:normal}
.visually-hidden-file{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:390px){.photo-pick-btn{font-size:12px}}

/* V9.7: Entire client row opens the profile */
.client-list-row{display:flex;align-items:center;gap:12px;width:100%;padding:13px 5px;border:0;border-bottom:1px solid #e9e1d8;border-radius:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}
.client-list-row:last-child{border-bottom:0}.client-list-row:hover{background:rgba(24,67,50,.045)}.client-list-row:focus-visible{outline:2px solid #225740;outline-offset:-2px;border-radius:9px}
.client-list-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#f1e6da;color:#31513d;font-weight:700;font-size:16px}
.client-list-info{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1;overflow-wrap:anywhere}.client-list-info strong{font-size:15px}.client-list-info .muted{font-size:12px;line-height:1.4}.client-list-chevron{font-size:27px;color:#998a7a;line-height:1;padding:0 5px}
@media(max-width:720px){.client-list-row{min-height:70px;gap:10px;padding:12px 2px}.client-list-avatar{flex-basis:36px;width:36px;height:36px}.client-list-info strong{font-size:14px}.client-list-info .muted{font-size:11px}}

/* TAJMA V9.8: Original salon logo, transparent and responsive */
.tajma-brand-logo{display:block;width:min(100%,190px);height:auto;object-fit:contain;margin:0 auto}
.auth-logo{display:block;width:min(100%,270px);height:auto;margin:0 auto 16px;object-fit:contain}
.brand-lockup{display:flex;align-items:center;justify-content:center;min-width:0}
@media(max-width:720px){
 .top .brand-lockup{flex:1;justify-content:flex-start;min-width:0}
 .tajma-brand-logo{width:clamp(125px,37vw,165px);margin:0}
 .top{align-items:center;gap:8px}
 .top .sidebar-footer{margin-left:auto}
 .top .sidebar-footer .ghost{white-space:nowrap}
}

/* V9.9 compact desktop preview and mobile header */
@media(min-width:721px){
.client-layout{grid-template-columns:minmax(275px,340px) minmax(0,1fr);gap:18px;align-items:start}
.client-detail.client-preview-panel{min-height:0;padding:22px 26px}
.client-list-row.is-selected{background:#f2e8df;border-radius:12px;padding-left:9px;padding-right:9px}
.client-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px;align-content:start}
.client-preview-heading{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding-bottom:13px;border-bottom:1px solid #eee5dc}
.client-preview-avatar{width:55px;height:55px;flex:0 0 55px;display:grid;place-items:center;background:#eee1d2;color:#31513d;border-radius:50%;font:28px Georgia,serif}
.client-preview-identity{min-width:0}
.client-preview-identity h3{margin:3px 0 4px;font-size:22px}
.client-preview-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.client-preview-stats>div{background:#f7f1eb;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:8px}
.client-preview-stats span{font-size:12px;color:#817368}
.client-preview-stats strong{font-size:21px;overflow-wrap:anywhere}
.client-preview-visit{grid-column:1/-1;padding:14px 0;border-bottom:1px solid #eee5dc}
.client-preview-visit-line{display:flex;justify-content:space-between;gap:12px;margin:10px 0 5px}
.client-preview-section-title{font-size:12px;font-weight:700;letter-spacing:.7px;color:#8b735d}
.client-preview-note{grid-column:1/-1}
.client-preview-note p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.client-preview-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}
.client-preview-actions button{flex:1 1 190px}
.client-preview-empty{padding:15px 5px}
}
@media(min-width:721px) and (max-width:1050px){.client-layout{grid-template-columns:minmax(230px,290px) minmax(0,1fr)}.client-detail.client-preview-panel{padding:18px}}
@media(max-width:720px){
.top{padding:8px 15px!important;min-height:0!important;height:auto!important;gap:8px!important}
.top .brand-lockup{padding:0!important}
.top .tajma-brand-logo{width:clamp(102px,30vw,135px)!important;max-height:78px;object-fit:contain}
.top .sidebar-footer .ghost{font-size:11px!important;padding:7px 10px!important;min-height:35px!important;border-radius:10px!important}
.dashboard-hero{min-height:0!important;height:215px!important}
.dashboard-hero .hero-copy{padding:24px 20px!important}
.dashboard-hero h1{font-size:clamp(27px,7vw,37px)!important;line-height:1.12!important}
.dashboard-hero .eyebrow{font-size:10px!important}
}

/* TAJMA V10: server-side 20-row client directory and mobile-only single-pane layout */
.directory-pager{display:grid;gap:10px;margin-top:15px;padding-top:14px;border-top:1px solid #e9e1d8;font-size:12px}
.directory-pager-actions{display:flex;align-items:center;justify-content:space-between;gap:7px}
.directory-pager-actions button{font-size:12px;padding:9px 10px;min-height:38px}
.directory-pager-actions button:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:720px){.client-layout:not(:has(.profile-page)) .client-detail.client-preview-panel{display:none!important}.client-layout{grid-template-columns:minmax(0,1fr)!important}.directory-pager-actions button{min-height:44px}}

/* V10.1: on small screens the desktop preview is hidden, so new-client
   form opens in an accessible mobile modal instead of that hidden panel. */
.tajma-client-form-dialog{width:min(94vw,620px);max-width:620px;max-height:90dvh;overflow:auto;border:0;border-radius:18px;padding:0;background:#fff;color:#263b30;box-shadow:0 22px 70px #0005}
.tajma-client-form-dialog::backdrop{background:rgba(15,30,24,.58)}
.tajma-client-form-inner{padding:20px}
.tajma-form-close{display:block;margin:0 0 16px auto}
.tajma-client-form-dialog .formgrid{grid-template-columns:1fr}
.tajma-client-form-dialog input,.tajma-client-form-dialog textarea{max-width:100%;box-sizing:border-box}
.tajma-client-form-dialog .actions{display:flex;flex-wrap:wrap;gap:10px}

/* TAJMA V11: compact mobile karton and visit pagination */
.profile-more{text-align:center;padding:12px 0 4px}
.profile-more button{min-height:44px}
.visits-directory #visitSearch{width:100%;box-sizing:border-box;margin:7px 0 13px}
@media(max-width:720px){
 .profile-page-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .profile-page-head h1{font-size:22px!important}
 .profile-new-visit{font-size:13px!important;padding:10px 12px!important;min-height:43px;white-space:nowrap}
 .profile-summary{padding:12px!important}
 .profile-summary h3{font-size:16px!important;margin:0 0 9px!important}
 .profile-summary>div{padding:10px 12px!important;min-height:0!important}
 .profile-summary>div span{font-size:12px!important}
 .profile-summary>div strong{font-size:21px!important}
 .profile-visit{padding:10px!important;gap:8px!important;margin-bottom:10px!important;min-height:0!important}
 .profile-date{min-width:50px!important;padding:7px 4px!important}
 .profile-date strong{font-size:21px!important}
 .visit-thumbs{gap:7px!important}
 .visit-thumbs .photo-preview img{width:61px!important;height:72px!important;object-fit:cover}
 .visit-thumbs .photo-preview span{font-size:10px!important}
 .profile-visit-info{min-width:0!important}
 .profile-tabs{margin-bottom:7px!important}
 .nav{padding:3px 4px calc(3px + env(safe-area-inset-bottom,0px))!important}
 .nav button{min-height:53px!important;padding:5px 2px!important;font-size:10px!important;line-height:1.15!important}
 .nav .nav-symbol .ui-icon{width:20px!important;height:20px!important}
 .directory-pager-actions{gap:7px;flex-wrap:wrap}
 .directory-pager-actions button{font-size:12px;padding:9px!important}
}

/* V11.2 manual restore controls */
#restoreJSONFile,#restorePhotosFile{display:block;width:100%;max-width:100%;margin:12px 0;box-sizing:border-box}#restoreJSONReport,#restorePhotosReport{margin:12px 0;white-space:pre-wrap;overflow-wrap:anywhere}

/* V11.3 finance paging and filter */
.tajma-finance-search{margin-top:14px;display:grid;gap:7px;max-width:450px}.tajma-finance-search input{width:100%;box-sizing:border-box}.tajma-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}.tajma-pagination>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}@media(max-width:720px){.tajma-pagination{justify-content:center;text-align:center}.tajma-pagination>span{width:100%}}
/* TAJMA V12 - termini */
.appt-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0 22px}.appt-toolbar input,.appt-toolbar select{width:auto;min-width:145px}.appt-days{display:grid;gap:16px}.appt-day{padding:20px}.appt-day-header{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e4ded2;padding-bottom:12px;margin-bottom:10px}.appt-day-header h3{margin:0}.appt-item{display:flex;gap:15px;align-items:center;padding:12px 0;border-bottom:1px solid #eee8dd}.appt-item:last-child{border-bottom:0}.appt-time{font-weight:700;min-width:105px;color:#173c32}.appt-details{flex:1;min-width:0;display:grid;gap:4px}.appt-details small{color:#66736d}.appt-overlay{position:fixed;inset:0;background:#081a15a8;z-index:1000;display:flex;justify-content:center;align-items:flex-start;overflow-y:auto;padding:24px 12px}.appt-dialog{width:min(620px,100%);padding:25px;margin:auto 0;max-height:none}.appt-close{float:right}.appt-dialog form{display:grid;gap:9px}.appt-dialog label{font-weight:600;font-size:13px}.appt-dialog input:not([type=checkbox]),.appt-dialog select,.appt-dialog textarea{width:100%;box-sizing:border-box}.appt-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.appt-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.appt-hour-row{display:grid;grid-template-columns:1.5fr 1fr 1fr;align-items:center;gap:8px;margin:10px 0}.appt-success{color:#176e43}.appt-error{color:#ad2424}@media(max-width:650px){.appt-toolbar{gap:6px}.appt-toolbar input,.appt-toolbar select{min-width:0;max-width:100%}.appt-item{flex-wrap:wrap}.appt-time{min-width:100%}.appt-two{grid-template-columns:1fr 1fr}.appt-hour-row{grid-template-columns:1fr 1fr}.appt-hour-row label{grid-column:1/-1}}
