:root{--forest:#173f35;--forest-2:#23594a;--mint:#dce9df;--cream:#f5f2ea;--paper:#fff;--ink:#18231f;--muted:#718079;--line:#dde4df;--gold:#bb8b3d;--danger:#b54949;--blue:#3c6e8f;--shadow:0 12px 35px rgba(27,54,45,.09);--radius:18px;--sidebar:250px}*{box-sizing:border-box}html,body{height:100%;margin:0}body{font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--cream);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}h1,h2{font-family:'Playfair Display',serif}h1{font-size:28px;margin-bottom:4px}h2{font-size:26px;margin-bottom:8px}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700;color:var(--gold);margin-bottom:12px}.brand{display:flex;align-items:center;gap:11px;font-family:'Playfair Display',serif;font-weight:700;font-size:18px}.brand-mark{width:38px;height:38px;border-radius:12px;background:var(--forest);color:white;display:grid;place-items:center;font:700 13px 'DM Sans';letter-spacing:.04em}.brand-light .brand-mark{background:#fff;color:var(--forest)}.auth-shell{display:grid;grid-template-columns:minmax(400px,1.05fr) minmax(430px,.95fr);min-height:100vh}.auth-art{background:linear-gradient(145deg,rgba(10,46,38,.93),rgba(27,72,58,.76)),url('https://images.unsplash.com/photo-1553284965-83fd3e82fa5a?auto=format&fit=crop&w=1400&q=85') center/cover;color:#fff;padding:42px 54px;display:flex;flex-direction:column;justify-content:space-between}.auth-copy h1{font-size:clamp(48px,6vw,78px);line-height:.98;letter-spacing:-.03em;margin:0 0 25px}.auth-copy h1 em{color:#ddc38e;font-style:italic}.auth-copy>p:last-child{font-size:17px;line-height:1.6;max-width:480px;color:#dce7e3}.art-stat{border-left:2px solid #d9bd7d;padding-left:16px;display:flex;flex-direction:column}.art-stat span{color:#c8d5d1}.auth-panel{background:#fbfaf7;display:grid;place-items:center;padding:40px}.auth-form{width:min(100%,430px)}.mobile-brand{display:none}.auth-form label,.modal label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:12px;margin-bottom:16px}.auth-form input,.modal input,.modal select,.modal textarea,.toolbar input,.toolbar select{width:100%;border:1px solid var(--line);background:#fff;border-radius:11px;padding:13px 14px;outline:none;color:var(--ink);transition:.2s}.auth-form input:focus,.modal input:focus,.modal select:focus,.modal textarea:focus,.toolbar input:focus{border-color:var(--forest-2);box-shadow:0 0 0 3px rgba(35,89,74,.1)}.btn{border:0;border-radius:11px;padding:12px 17px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:9px}.btn-primary{background:var(--forest);color:#fff}.btn-primary:hover{background:var(--forest-2)}.btn-secondary{background:var(--mint);color:var(--forest)}.btn-danger{background:#f7e2e0;color:var(--danger)}.btn-link{background:transparent;color:var(--forest);margin:10px auto}.btn-block{width:100%;margin-top:6px}.back-link{border:0;background:transparent;padding:0;color:var(--forest);margin-bottom:25px}.segmented{display:flex;background:#e9ece7;padding:4px;border-radius:12px;margin-bottom:18px}.segmented button{flex:1;border:0;background:transparent;border-radius:9px;padding:9px;color:var(--muted);font-size:12px}.segmented button.active{background:#fff;color:var(--forest);font-weight:700;box-shadow:0 2px 8px #cad2cc}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 14px}.span-2{grid-column:span 2}.compact label{margin-bottom:13px}.app-shell{height:100vh;display:grid;grid-template-columns:var(--sidebar) 1fr;overflow:hidden}.sidebar{background:#f9faf7;border-right:1px solid var(--line);padding:25px 18px 18px;display:flex;flex-direction:column;overflow:hidden}.sidebar>.brand{padding:0 8px 25px}.workspace{display:flex;align-items:center;gap:10px;padding:13px;background:#edf1eb;border-radius:13px;margin-bottom:24px}.workspace small,.user-pill small{font-size:9px;color:var(--muted);display:block;letter-spacing:.08em}.workspace strong{display:block;margin-top:3px;font-size:12px}.avatar{width:35px;height:35px;border-radius:11px;background:#d2e1d8;color:var(--forest);display:grid;place-items:center;font-weight:700}.main-nav{display:flex;flex-direction:column;gap:4px}.nav-label{font-size:9px;letter-spacing:.13em;color:#94a09a;margin:13px 12px 5px}.nav-item{width:100%;border:0;background:transparent;color:#63716a;display:flex;align-items:center;gap:12px;border-radius:10px;padding:11px 12px;text-align:left;font-weight:600}.nav-item:hover,.nav-item.active{background:var(--mint);color:var(--forest)}.nav-icon{width:21px;text-align:center;font-size:17px}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:12px}.sidebar-foot small{display:block;color:#9aa39e;padding:8px 12px}.workspace-main{min-width:0;height:100vh;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden}.topbar{height:88px;background:rgba(255,255,255,.82);backdrop-filter:blur(12px);padding:17px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.topbar h1{font:700 21px 'DM Sans';margin:0}.topbar p{font-size:11px;color:var(--muted);margin:5px 0 0}.top-actions,.user-pill{display:flex;align-items:center;gap:12px}.user-pill{padding-left:12px;border-left:1px solid var(--line)}.user-pill strong{display:block;font-size:12px}.icon-btn{position:relative;border:0;background:#f2f4f1;width:38px;height:38px;border-radius:11px;font-size:19px}.icon-btn i{position:absolute;width:7px;height:7px;border-radius:50%;background:#bb5a48;right:8px;top:7px;border:2px solid #fff}.tabbar{min-height:43px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;padding:0 25px;gap:3px;overflow:hidden}.tab{height:36px;max-width:180px;border:0;background:#f0f2ef;color:var(--muted);padding:0 10px 0 13px;border-radius:9px 9px 0 0;display:flex;align-items:center;gap:10px;white-space:nowrap}.tab span{overflow:hidden;text-overflow:ellipsis}.tab.active{background:var(--cream);color:var(--forest);font-weight:700;border-top:2px solid var(--gold)}.tab-close{border:0;background:transparent;color:inherit;padding:3px;font-size:16px;line-height:1}.view{overflow:auto;padding:25px 30px 35px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:22px}.page-head h2{font:700 22px 'DM Sans';margin:0 0 5px}.page-head p{margin:0;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;position:relative;overflow:hidden}.stat-card .stat-icon{width:38px;height:38px;border-radius:11px;background:var(--mint);display:grid;place-items:center;color:var(--forest);font-size:18px;margin-bottom:20px}.stat-card small{color:var(--muted)}.stat-card strong{display:block;font-size:25px;margin-top:6px}.stat-card .trend{position:absolute;right:16px;top:18px;color:var(--forest);font-size:10px;background:#e8f2eb;border-radius:20px;padding:5px 7px}.content-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 4px rgba(20,40,33,.02);overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--line)}.panel-head h3{margin:0;font-size:15px}.panel-body{padding:18px 20px}.activity{display:flex;gap:12px;padding:11px 0;border-bottom:1px solid #edf0ed}.activity:last-child{border:0}.activity-icon{width:35px;height:35px;flex:none;border-radius:50%;background:var(--mint);display:grid;place-items:center}.activity p{margin:0;font-size:12px}.activity small{color:var(--muted)}.toolbar{display:flex;align-items:center;gap:10px;margin-bottom:16px}.toolbar .search{max-width:330px}.toolbar .push{margin-left:auto}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:720px}.data-table th{text-align:left;padding:12px 16px;background:#f7f8f5;color:#74817a;font-size:10px;letter-spacing:.06em;text-transform:uppercase}.data-table td{padding:14px 16px;border-top:1px solid #edf0ed;font-size:12px}.client-cell{display:flex;align-items:center;gap:10px}.client-cell strong{display:block}.client-cell small{color:var(--muted)}.status{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:20px;background:#e7eee9;color:var(--forest);font-weight:700;font-size:10px}.status:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status.warning{background:#f7edda;color:#9b6b1d}.status.danger{background:#f8e1df;color:var(--danger)}.status.info{background:#e2edf4;color:var(--blue)}.row-actions{display:flex;gap:6px}.row-actions button{border:0;border-radius:8px;padding:7px 9px;background:#edf1ed;color:var(--forest)}.empty{padding:55px 20px;text-align:center;color:var(--muted)}.empty-icon{width:60px;height:60px;margin:0 auto 15px;border-radius:20px;background:var(--mint);display:grid;place-items:center;font-size:25px}.debt-list,.proposal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.debt-card,.proposal-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}.debt-card header,.proposal-card header{display:flex;justify-content:space-between;gap:10px}.debt-card h3,.proposal-card h3{font-size:15px;margin:0 0 4px}.amount{font-size:22px;font-weight:700;margin:18px 0 4px}.installments{margin-top:16px;border-top:1px solid var(--line);padding-top:10px}.installment{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:11px}.progress{height:6px;background:#e9eeea;border-radius:9px;overflow:hidden;margin:12px 0}.progress span{display:block;height:100%;background:var(--forest)}.modal{border:0;padding:0;background:transparent;width:min(680px,calc(100% - 28px));max-height:92vh}.modal::backdrop{background:rgba(13,32,27,.55);backdrop-filter:blur(3px)}.modal-card{background:#fafbf8;border-radius:20px;overflow:hidden;box-shadow:var(--shadow)}.modal-card>header{display:flex;justify-content:space-between;padding:21px 24px 15px;border-bottom:1px solid var(--line)}.modal-card h2{font:700 20px 'DM Sans';margin:0}.modal-card .eyebrow{margin-bottom:6px}.modal-body{padding:20px 24px 24px;overflow:auto;max-height:calc(92vh - 80px)}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:7px}.toast{position:fixed;z-index:100;right:24px;bottom:24px;background:var(--forest);color:#fff;padding:13px 18px;border-radius:11px;box-shadow:var(--shadow);transform:translateY(120px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}.toast.error{background:var(--danger)}.mobile-header,.mobile-nav{display:none}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.sidebar{width:220px}.app-shell{grid-template-columns:220px 1fr}}
@media(max-width:720px){body{background:#f4f3ed}.auth-shell{display:block}.auth-art{display:none}.auth-panel{min-height:100dvh;padding:25px 20px;align-items:center}.mobile-brand{display:flex;margin-bottom:48px}.auth-form h2{font-size:30px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.app-shell{height:100dvh;display:grid;grid-template-columns:1fr;grid-template-rows:64px minmax(0,1fr) 70px}.sidebar,.topbar,.tabbar{display:none}.mobile-header{display:flex;background:#fff;padding:11px 16px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.workspace-main{height:auto;display:block;overflow:hidden}.view{height:100%;padding:18px 15px 28px;overflow-y:auto}.mobile-nav{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:#fff;border-top:1px solid var(--line);padding:7px max(7px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom))}.mobile-nav button{border:0;background:transparent;color:#7d8983;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px}.mobile-nav button span{font-size:19px}.mobile-nav button.active{color:var(--forest);font-weight:700}.page-head{align-items:center;margin-bottom:16px}.page-head h2{font-size:20px}.page-head p{font-size:11px}.page-head .btn{padding:10px;font-size:0}.page-head .btn:before{content:'+';font-size:20px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:10px}.stat-card{padding:14px;border-radius:15px}.stat-card .stat-icon{margin-bottom:13px}.stat-card strong{font-size:18px}.stat-card .trend{display:none}.content-grid{display:block}.content-grid .panel{margin-bottom:13px}.panel{border-radius:15px}.toolbar{display:grid;grid-template-columns:1fr auto}.toolbar .search{grid-column:span 2;max-width:none}.toolbar .push{margin:0}.table-wrap{overflow:visible}.data-table{min-width:0}.data-table thead{display:none}.data-table,.data-table tbody,.data-table tr,.data-table td{display:block}.data-table tr{padding:14px;border-top:1px solid var(--line);position:relative}.data-table td{border:0;padding:4px 0}.data-table td[data-label]:before{content:attr(data-label) ': ';color:var(--muted);font-size:10px}.data-table td:first-child:before{display:none}.data-table td:last-child{position:absolute;right:12px;top:12px}.proposal-grid,.debt-list{grid-template-columns:1fr}.modal{width:100%;max-height:none;height:100%;margin:0}.modal-card{height:100%;border-radius:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.modal-body{max-height:none;padding:18px;overflow:auto}.modal-card>header{padding-top:max(18px,env(safe-area-inset-top))}.toast{right:14px;left:14px;bottom:84px;text-align:center}}
.clickable-row{cursor:pointer;transition:background .18s}.clickable-row:hover,.clickable-row:focus{background:#f3f7f3;outline:none}.row-open{border:0;border-radius:8px;padding:7px 11px;background:var(--mint);color:var(--forest);font-weight:700}.animal-detail h3{margin:20px 0 10px}.animal-detail h3:first-child{margin-top:0}.animal-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.animal-detail-grid>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:11px 12px;min-width:0}.animal-detail-grid small,.pedigree-detail small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:4px}.animal-detail-grid strong{display:block;overflow-wrap:anywhere;font-size:12px}.pedigree-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pedigree-detail article{background:var(--mint);border-radius:13px;padding:15px}.pedigree-detail strong,.pedigree-detail span{display:block}.pedigree-detail strong{margin-bottom:8px;color:var(--forest)}.pedigree-detail span{font-size:11px;color:var(--muted);margin-top:3px}
@media(max-width:720px){.animal-table td:nth-child(2),.animal-table td:nth-child(3),.animal-table td:nth-child(5){display:none}.animal-table td:nth-child(4),.animal-table td:nth-child(6){display:inline-block;margin-right:12px}.animal-table td:last-child{display:block}.animal-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pedigree-detail{grid-template-columns:1fr}}
.animal-finance-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:16px}.animal-finance-summary>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.animal-finance-summary small{display:block;color:var(--muted);font-size:9px;margin-bottom:5px}.animal-finance-summary strong{font-size:16px}.finance-positive{color:var(--forest)}.finance-negative{color:var(--danger)}.animal-finance-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.animal-finance-head p{margin:0}.animal-finance-table{min-width:650px;background:#fff}.animal-finance-table td small{display:block;color:var(--muted);margin-top:3px}.animal-finance-table .row-actions{justify-content:flex-end}
@media(max-width:720px){.animal-finance-summary{grid-template-columns:1fr}.animal-finance-head{align-items:stretch;flex-direction:column}.animal-finance-head .btn{width:100%}.animal-finance-table{min-width:0}.animal-finance-table td:last-child{position:static;margin-top:8px}.animal-finance-table .row-actions{justify-content:flex-start}}
.animal-finance-quick{display:flex;align-items:center;justify-content:space-between;gap:14px;background:var(--mint);border-radius:13px;padding:13px 15px;margin-bottom:16px}.animal-finance-quick strong,.animal-finance-quick small{display:block}.animal-finance-quick small{color:var(--muted);font-size:10px;margin-top:4px}
@media(max-width:720px){.animal-finance-quick{align-items:stretch;flex-direction:column}.animal-finance-quick .btn{width:100%}}
.haras-finance-title{margin-top:28px}.haras-finance-title+ .toolbar{margin-top:-8px}.data-table td>small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.haras-finance-details-modal{width:min(1050px,calc(100% - 28px))}.haras-finance-detail-wrap{border:1px solid var(--line);border-radius:12px}.haras-finance-detail-sheet{min-width:900px}.haras-finance-detail-sheet.general{min-width:1100px}.haras-finance-detail-sheet th:first-child{width:13%}.haras-finance-detail-sheet:not(.general) th:nth-child(2){width:32%}.haras-finance-detail-sheet:not(.general) th:nth-child(3){width:20%}.haras-finance-detail-sheet:not(.general) th:nth-child(4){width:15%}.haras-finance-detail-sheet:not(.general) th:nth-child(5){width:20%}.haras-finance-detail-sheet td small{display:block;margin-top:4px;color:var(--muted)}.haras-finance-registration{margin:-4px 0 12px;color:var(--muted);font-size:10px}.haras-finance-overview-table{min-width:850px}
@media(max-width:720px){.haras-finance-details-modal{width:100%}.haras-finance-overview-table{min-width:0}.haras-finance-overview-table td:last-child{position:static}.haras-finance-overview-table td:last-child .row-open{width:100%}}
.registration-tabs{overflow-x:auto}.registration-tabs button{min-width:max-content;padding-left:14px;padding-right:14px}
.stock-balance{display:flex;align-items:center;justify-content:space-between;background:var(--mint);border-radius:12px;padding:12px 14px;margin:-4px 0 16px}.stock-balance small{color:var(--muted);font-size:9px;letter-spacing:.06em}.stock-balance strong{color:var(--forest);font-size:17px}
.inventory-tabs{width:min(100%,820px);margin-bottom:18px}.measurement-info{margin:-4px 0 16px;padding:13px 15px;border:1px solid #bfd4c6;border-radius:12px;background:#edf5ef;color:var(--forest);font-size:11px;line-height:1.45}.measurement-table td:nth-child(3) strong,.measurement-table td:nth-child(4) strong{color:var(--forest)}
.diet-feeds{display:flex;flex-wrap:wrap;gap:5px}.diet-feed{display:inline-flex;gap:4px;align-items:center;padding:5px 8px;border:1px solid #d7e3da;border-radius:999px;background:#f4f8f5;font-size:11px;white-space:nowrap}.diet-feed strong{color:var(--forest)}.diet-item-card{margin:10px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8faf8}.diet-item-head,.diet-items-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.diet-items-title{margin:18px 0 8px}.diet-items-title>div{display:flex;flex-direction:column;gap:3px}.diet-items-title small{color:var(--muted);font-size:10px}.diet-remove{width:30px;height:30px;border:0;border-radius:50%;background:#f7e8e5;color:#9b3427;font-size:20px;cursor:pointer}.diet-period{margin-top:14px}.diet-animal-list{max-height:190px;margin-top:8px}.diet-table td:first-child small{display:block;margin-top:3px}.diet-item-card label small{display:block;margin-top:4px;color:var(--muted);font-size:10px}
.diet-time-field{margin-bottom:14px}.diet-time-field>strong{display:block;margin-bottom:8px;font-size:12px}.diet-time-row{display:grid;grid-template-columns:140px minmax(0,1fr) 38px;gap:8px;align-items:stretch;margin-bottom:7px}.diet-time-row input,.diet-time-row textarea{margin:0}.diet-time-row textarea{min-height:46px;resize:vertical}.diet-time-row button{border:0;border-radius:10px;background:#f7e2e0;color:var(--danger);font-size:19px}.diet-add-time{width:100%;border:1px dashed #a9bdb1;border-radius:10px;background:#f1f7f2;color:var(--forest);padding:9px;font-size:10px;font-weight:700}
.diet-plan-list{display:flex;flex-direction:column;gap:16px}.diet-plan-card{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff}.diet-plan-head{display:grid;grid-template-columns:minmax(190px,1fr) minmax(360px,2fr) auto;gap:18px;align-items:center;padding:16px 18px;background:#f7faf7;border-bottom:1px solid var(--line)}.diet-plan-head h3{margin:0 0 2px;font-size:16px}.diet-plan-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;color:var(--text);font-size:11px}.diet-plan-meta>span{display:flex;flex-direction:column;gap:4px}.diet-plan-meta strong{color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.diet-plan-meta em{width:max-content;font-style:normal}.diet-sheet-wrap{overflow-x:auto}.diet-sheet{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed}.diet-sheet th,.diet-sheet td{padding:13px 15px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:top;line-height:1.45}.diet-sheet th:last-child,.diet-sheet td:last-child{border-right:0}.diet-sheet tbody tr:last-child td{border-bottom:0}.diet-sheet th{background:#eef5ef;color:var(--forest);font-size:10px;text-transform:uppercase;letter-spacing:.04em}.diet-sheet th:first-child{width:14%}.diet-sheet th:nth-child(2){width:23%}.diet-sheet th:nth-child(3){width:30%}.diet-sheet th:nth-child(4){width:33%}.diet-sheet td{font-size:12px;white-space:pre-wrap}.diet-sheet td small{display:block;margin-top:4px;color:var(--muted)}.diet-sheet-time{display:inline-block;padding:5px 9px;border-radius:8px;background:var(--mint);color:var(--forest);font-size:13px}.diet-plan-notes{padding:12px 18px;border-top:1px solid var(--line);background:#fbfcfb}.diet-plan-notes strong{font-size:10px;color:var(--forest);text-transform:uppercase}.diet-plan-notes p{margin:4px 0 0;color:var(--muted);font-size:11px;white-space:pre-wrap}
.diet-details-modal,.training-details-modal,.measurement-details-modal,.reproduction-details-modal{width:min(1050px,calc(100% - 28px))}.diet-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.diet-detail-summary>span{padding:11px 12px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:11px}.diet-detail-summary strong{display:block;margin-bottom:4px;color:var(--muted);font-size:9px;text-transform:uppercase}.diet-detail-view>.diet-sheet-wrap,.training-detail-view>.training-sheet-wrap,.measurement-detail-view>.measurement-sheet-wrap,.reproduction-detail-view>.reproduction-history-wrap{border:1px solid var(--line);border-radius:12px}.diet-detail-view>.diet-plan-notes,.training-detail-view>.diet-plan-notes{margin-top:14px;border:1px solid var(--line);border-radius:11px}.training-sheet th:first-child{width:18%}.training-sheet th:nth-child(2){width:25%}.training-sheet th:nth-child(3){width:39%}.training-sheet th:nth-child(4){width:18%}.measurement-sheet{min-width:900px}.measurement-sheet th:first-child{width:14%}.measurement-sheet th:nth-child(2),.measurement-sheet th:nth-child(3){width:12%}.measurement-sheet th:nth-child(4){width:27%}.measurement-sheet th:nth-child(5){width:23%}.measurement-sheet th:nth-child(6){width:12%}.reproduction-history-sheet{min-width:1200px}.reproduction-history-sheet th:first-child{width:11%}.reproduction-history-sheet th:nth-child(2){width:18%}.reproduction-history-sheet th:nth-child(3){width:15%}.reproduction-history-sheet th:nth-child(4){width:12%}.reproduction-history-sheet th:nth-child(5){width:11%}.reproduction-history-sheet th:nth-child(6){width:16%}.reproduction-history-sheet th:nth-child(7){width:11%}.reproduction-history-sheet th:nth-child(8){width:6%}.training-time-row{grid-template-columns:minmax(0,1fr) 38px}
.measurement-detail-view>.diet-detail-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.measurement-detail-view>.diet-detail-summary>span{min-width:0;padding:8px 10px;border-radius:9px;font-size:10px}.measurement-detail-view>.diet-detail-summary strong{margin-bottom:2px;font-size:8px;white-space:nowrap}
.category-field{min-width:0}.category-field>label{margin-bottom:7px}.category-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:16px}.category-actions .btn{width:100%;padding:9px 8px;font-size:10px}.category-actions .btn:disabled{opacity:.45;cursor:not-allowed}.category-editor{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;margin:-8px 0 16px}.category-editor input{min-width:0}.category-editor .btn{padding:10px 12px;font-size:11px}
@media(max-width:720px){.diet-time-field{min-width:0}.diet-time-row{width:100%;grid-template-columns:minmax(0,1fr) 42px;gap:7px;overflow:visible}.diet-time-row input[type="time"]{display:block;width:100%;min-width:0;height:50px;padding:10px 12px;-webkit-appearance:auto;appearance:auto}.diet-time-row textarea{grid-column:1;min-width:0}.diet-time-row button{grid-column:2;grid-row:1/3;width:42px;min-width:42px;height:auto}.training-time-row button{grid-row:1;height:50px}.diet-time-row input[type="time"]::-webkit-date-and-time-value{text-align:left}.diet-time-row input[type="time"]::-webkit-calendar-picker-indicator{display:block;opacity:1;min-width:24px;min-height:24px}.diet-add-time{min-height:44px}.diet-plan-head{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px}.diet-plan-meta{grid-column:1/-1;grid-template-columns:1fr 1fr}.diet-plan-meta>span:last-child{grid-column:1/-1}.diet-plan-head>.row-open{grid-column:2;grid-row:1}.diet-sheet{min-width:680px}.diet-sheet th,.diet-sheet td{padding:11px}.diet-plan-notes{padding:11px 13px}.diet-details-modal,.training-details-modal,.measurement-details-modal,.reproduction-details-modal{width:100%}.diet-detail-summary{grid-template-columns:1fr}.diet-table td:last-child .row-actions,.training-table td:last-child .row-actions{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:720px){.measurement-detail-view>.diet-detail-summary{grid-template-columns:repeat(4,minmax(112px,1fr));overflow-x:auto;padding-bottom:3px}.measurement-detail-view>.diet-detail-summary>span{padding:7px 8px}}
@media(max-width:720px){.category-editor{grid-template-columns:1fr 1fr}.category-editor input{grid-column:1/-1}.category-editor .btn{min-height:42px}}
.training-activities{display:flex;flex-wrap:wrap;gap:5px}.training-activity{display:inline-flex;gap:4px;align-items:center;padding:5px 8px;border:1px solid #cad8e2;border-radius:999px;background:#f1f6f9;font-size:11px;white-space:nowrap}.training-activity strong{color:#315f7a}.training-item-card{margin:10px 0;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8fafb}.training-table td:first-child small{display:block;margin-top:3px}
.training-day-field{display:grid;gap:7px;margin-bottom:15px}.training-day-field>strong{font-size:11px}.training-day-field>small{color:var(--muted);font-size:9px}.training-day-picker{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.training-day-picker button{min-height:42px;border:1px solid #cfdad3;border-radius:10px;background:#fff;color:var(--muted);font-size:10px;font-weight:800}.training-day-picker button:hover{border-color:#7fa08d;background:#edf4ef}.training-day-picker button.active{border-color:var(--forest);background:var(--forest);color:#fff;box-shadow:0 4px 10px rgba(23,63,53,.16)}
@media(max-width:720px){.training-day-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.training-day-picker button{min-height:40px}}
@media(max-width:720px){.inventory-tabs{width:100%;margin-bottom:14px}.inventory-tabs button{font-size:10px;padding-inline:7px}.measurement-info{margin-top:0}.measurement-stats,.diet-stats,.training-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.measurement-table td:last-child,.diet-table td:last-child,.training-table td:last-child{position:static}.measurement-table td:last-child .row-open,.diet-table td:last-child .row-open,.training-table td:last-child .row-open{width:100%}.diet-items-title{align-items:flex-start;flex-direction:column}.diet-items-title .btn{width:100%}}
.proposal-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}.proposal-card{padding:14px;border-radius:14px}.proposal-card header{align-items:flex-start}.proposal-card h3{font-size:13px}.proposal-card p{font-size:11px;margin-bottom:7px}.proposal-card .proposal-type{margin-bottom:6px}.proposal-card .amount{font-size:18px;margin:10px 0 3px}.proposal-card .row-actions{flex-wrap:wrap;margin-top:9px}.proposal-card .row-actions button{font-size:10px;padding:6px 8px}.proposal-card .status{padding:4px 7px;font-size:9px}
.financial-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,var(--forest),var(--forest-2));color:#fff;border-radius:16px;padding:18px 20px}.financial-hero h3{font-size:17px;margin:11px 0 4px}.financial-hero p{color:#cbdad5;font-size:11px;margin:0}.financial-hero .status{background:rgba(255,255,255,.15);color:#fff}.financial-open{text-align:right;flex:none}.financial-open small,.financial-summary small,.financial-installment small{display:block;font-size:9px;letter-spacing:.06em;color:var(--muted);margin-bottom:5px}.financial-open small{color:#cbdad5}.financial-open strong{font-size:24px}.financial-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:13px 0}.financial-summary>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.financial-summary strong{font-size:15px}.financial-progress{background:#eef2ee;border-radius:12px;padding:12px 14px}.financial-progress>div{height:7px;background:#d9e2dc;border-radius:10px;overflow:hidden;margin-bottom:7px}.financial-progress>div span{display:block;height:100%;background:var(--forest);border-radius:10px}.financial-progress small{color:var(--muted)}.financial-section-title{display:flex;justify-content:space-between;align-items:end;margin:20px 0 9px}.financial-section-title h3{font-size:15px;margin:0 0 3px}.financial-section-title p{font-size:11px;color:var(--muted);margin:0}.financial-installments{display:flex;flex-direction:column;gap:8px}.financial-installment{display:grid;grid-template-columns:55px 1fr 1fr auto auto;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:11px 12px}.financial-installment.paid{background:#f7faf7}.financial-installment.overdue{border-color:#edc9c5}.financial-installment strong{font-size:12px}.installment-number strong{color:var(--forest);font-size:15px}.financial-installment .btn{padding:7px 9px;font-size:10px}
.financial-details-modal{width:min(1050px,calc(100% - 28px))}.financial-installments-wrap{border:1px solid var(--line);border-radius:12px}.financial-installments-sheet{min-width:820px}.financial-installments-sheet th:first-child{width:11%}.financial-installments-sheet th:nth-child(2){width:18%}.financial-installments-sheet th:nth-child(3){width:18%}.financial-installments-sheet th:nth-child(4){width:27%}.financial-installments-sheet th:nth-child(5){width:26%}.financial-installments-sheet tr.paid{background:#f7faf7}.financial-installments-sheet tr.overdue{background:#fff8f7}.financial-installments-sheet td small{display:block;margin-top:5px}.financial-installments-sheet td:last-child .btn{padding:7px 10px;font-size:9px;white-space:nowrap}
.financial-compact-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#fff}.financial-compact-head>div:first-child{min-width:180px}.financial-compact-head>div:first-child>strong,.financial-compact-head>div:first-child>small{display:block}.financial-compact-head>div:first-child>strong{margin:6px 0 2px;font-size:12px}.financial-compact-head>div:first-child>small{color:var(--muted);font-size:9px}.financial-compact-summary{display:grid;grid-template-columns:repeat(4,minmax(90px,1fr));gap:7px}.financial-compact-summary>span{padding-left:10px;border-left:1px solid var(--line)}.financial-compact-summary small,.financial-compact-summary strong{display:block}.financial-compact-summary small{margin-bottom:3px;color:var(--muted);font-size:8px;text-transform:uppercase}.financial-compact-summary strong{font-size:11px;white-space:nowrap}.financial-compact-progress{height:4px;margin:8px 2px 0;overflow:hidden;border-radius:6px;background:#dfe7e1}.financial-compact-progress span{display:block;height:100%;border-radius:6px;background:var(--forest)}.financial-section-title.compact{margin:12px 0 7px}.financial-section-title.compact>small{color:var(--muted);font-size:9px}
@media(max-width:720px){.financial-hero{align-items:flex-start;flex-direction:column}.financial-open{text-align:left}.financial-summary{grid-template-columns:1fr}.financial-installment{grid-template-columns:48px 1fr auto}.installment-value{grid-column:2}.financial-installment .status{grid-column:3;grid-row:1}.financial-installment .btn{grid-column:1/-1;width:100%}}
@media(max-width:720px){.financial-details-modal{width:100%}.financial-compact-head{align-items:stretch;flex-direction:column}.financial-compact-summary{grid-template-columns:1fr 1fr}.financial-compact-summary>span{padding:7px 8px;border:0;border-radius:8px;background:var(--mint)}}
.sales-home{margin-top:24px}.sales-home-head{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:13px}.sales-home-head h3{margin:0 0 4px;font-size:17px}.sales-home-head p{margin:0;color:var(--muted);font-size:11px}.sales-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:16px}.sale-card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 3px 12px rgba(20,40,33,.04);transition:transform .18s,box-shadow .18s}.sale-card:hover,.sale-card:focus{transform:translateY(-2px);box-shadow:var(--shadow);outline:none}.clickable-card{cursor:pointer}.sale-photo{height:190px;background:linear-gradient(145deg,#e1ebe4,#cbdcd1);position:relative;display:grid;place-items:center;color:var(--forest);font-size:50px;overflow:hidden}.sale-photo img{width:100%;height:100%;object-fit:cover}.sale-badge{position:absolute;top:12px;right:12px;background:rgba(23,63,53,.9);color:#fff;border-radius:20px;padding:6px 10px;font-size:9px;font-weight:700;letter-spacing:.04em}.sale-badge.muted-badge{background:rgba(67,75,71,.85)}.sale-card-body{padding:15px 16px 17px}.sale-card-body .eyebrow{margin-bottom:7px;font-size:9px}.sale-card-body h3{font-size:15px;margin:0 0 5px}.sale-card-body p:not(.eyebrow){color:var(--muted);font-size:10px;margin:0 0 14px}.sale-price{display:block;color:var(--forest);font-size:17px}.sale-main-photo{height:min(48vh,390px);background:var(--mint);border-radius:15px;display:grid;place-items:center;overflow:hidden;color:var(--forest);font-size:66px}.sale-main-photo img{width:100%;height:100%;object-fit:contain;background:#e7ece8}.sale-gallery{display:flex;gap:8px;overflow-x:auto;margin-bottom:10px;padding-bottom:3px}.sale-gallery button{flex:0 0 68px;height:54px;border:2px solid transparent;background:#edf1ed;border-radius:9px;padding:0;overflow:hidden}.sale-gallery button.active{border-color:var(--gold)}.sale-gallery img{width:100%;height:100%;object-fit:cover}.sale-detail-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-top:18px}.sale-detail-head h3{font-size:20px;margin:0 0 5px}.sale-detail-head p:not(.eyebrow){color:var(--muted);font-size:11px}.sale-detail-head .eyebrow{margin-bottom:6px}.sale-detail-head .sale-price{text-align:right;white-space:nowrap;font-size:21px}.sale-description{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;line-height:1.6;white-space:pre-wrap}.empty-sale-photo{height:260px}
@media(max-width:720px){.sales-home{margin-top:19px}.sales-home-head{align-items:center}.sales-grid{grid-template-columns:1fr 1fr;gap:10px}.sale-photo{height:130px}.sale-card-body{padding:12px}.sale-card-body h3{font-size:12px}.sale-price{font-size:13px}.sale-detail-head{flex-direction:column}.sale-detail-head .sale-price{text-align:left}.sale-main-photo{height:38vh}.sale-detail .modal-actions{display:grid;grid-template-columns:1fr 1fr}.sale-detail .modal-actions .btn{width:100%}}
.sale-chat{display:grid;grid-template-rows:minmax(260px,50vh) auto;gap:12px}.chat-messages{background:#eef2ee;border-radius:15px;padding:14px;overflow-y:auto;display:flex;flex-direction:column;gap:9px}.chat-message{max-width:78%;border-radius:14px;padding:10px 12px;background:#fff;box-shadow:0 1px 3px rgba(20,40,33,.06)}.chat-message.mine{align-self:flex-end;background:var(--forest);color:#fff;border-bottom-right-radius:4px}.chat-message.theirs{align-self:flex-start;border-bottom-left-radius:4px}.chat-message p{margin:0 0 5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message>small{font-size:8px;opacity:.68}.chat-reference{display:block;color:var(--gold);font-weight:700;margin-bottom:5px}.chat-empty{margin:auto;text-align:center;color:var(--muted)}.chat-empty span{display:block;font-size:28px;margin-bottom:7px}.chat-form{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:stretch}.chat-form textarea{resize:none;margin:0!important}.chat-thread-list{display:flex;flex-direction:column;gap:8px}.chat-thread-list>button{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid var(--line);background:#fff;border-radius:13px;padding:11px;text-align:left;color:var(--ink)}.chat-thread-list>button:hover{background:#f3f7f3}.chat-thread-list strong,.chat-thread-list small{display:block}.chat-thread-list small{color:var(--muted);font-size:9px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-thread-meta{text-align:right}.chat-thread-meta b{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:10px;background:var(--danger);color:#fff;font-size:9px}.chat-thread-meta small{font-size:8px}
@media(max-width:720px){.sale-chat{grid-template-rows:minmax(260px,1fr) auto;height:100%}.chat-message{max-width:88%}.chat-form{grid-template-columns:1fr}.chat-form .btn{width:100%}.page-head>.row-actions{gap:6px}.page-head>.row-actions .btn{font-size:10px;padding:9px}}
.sale-main-photo[type=button]{width:100%;border:0;padding:0;position:relative;cursor:zoom-in}.sale-photo-zoom{position:absolute;right:12px;bottom:12px;background:rgba(13,32,27,.8);color:#fff;border-radius:20px;padding:7px 11px;font-size:10px;font-weight:700}.sale-photo-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:rgba(7,15,12,.96);padding:48px 24px 58px;place-items:center}.sale-photo-viewer[open]{display:grid}.sale-photo-viewer::backdrop{background:rgba(7,15,12,.96)}.sale-photo-viewer img{max-width:100%;max-height:calc(100dvh - 100px);object-fit:contain;border-radius:8px}.sale-photo-viewer>button{position:fixed;right:22px;top:18px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:29px;line-height:1}.sale-photo-viewer>strong{position:fixed;bottom:20px;left:20px;right:20px;text-align:center;color:#fff;font-size:13px}
.sale-banners{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 0 22px;padding:1px 1px 8px}.sale-banner{position:relative;flex:0 0 100%;aspect-ratio:16/5;margin:0;border-radius:17px;overflow:hidden;background:#e5ebe6;border:1px solid var(--line);scroll-snap-align:start}.sale-banner img{width:100%;height:100%;object-fit:contain;display:block}.sale-banner figcaption{position:absolute;left:14px;bottom:13px;max-width:calc(100% - 28px);padding:7px 11px;border-radius:9px;background:rgba(13,32,27,.82);color:#fff;font-weight:700;font-size:11px}.banner-upload-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 14px;align-items:end;padding-bottom:17px;border-bottom:1px solid var(--line)}.banner-upload-form .btn{margin-bottom:16px}.banner-help{color:var(--muted);font-size:10px;margin:12px 0}.banner-manager-list{display:flex;flex-direction:column;gap:9px}.banner-manager-item{display:grid;grid-template-columns:100px minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:9px;background:#fff}.banner-manager-item>img{width:100px;height:48px;object-fit:contain;background:#edf1ed;border-radius:7px}.banner-manager-item strong,.banner-manager-item small{display:block}.banner-manager-item small{color:var(--muted);font-size:9px;margin-top:3px}.banner-toggle{margin:0!important;flex-direction:row!important;align-items:center;white-space:nowrap}.banner-toggle input{width:auto!important}
@media(max-width:720px){.sale-banner{aspect-ratio:2/1}.banner-upload-form{grid-template-columns:1fr}.banner-manager-item{grid-template-columns:72px minmax(0,1fr);gap:8px}.banner-manager-item>img{width:72px;height:42px}.banner-manager-item .banner-toggle,.banner-manager-item .btn{grid-column:auto}.banner-manager-item .btn{padding:9px}}

/* Mobile layout refresh */
@media(max-width:720px){
  html,body{width:100%;overflow:hidden;overscroll-behavior:none}
  .auth-shell{height:100dvh;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
  .auth-panel{min-height:100dvh;height:auto;align-items:start;padding-top:max(25px,env(safe-area-inset-top));padding-bottom:max(32px,env(safe-area-inset-bottom))}
  .auth-form{padding-bottom:18px}
  body{font-size:14px;-webkit-tap-highlight-color:transparent}
  button,.btn,.nav-item,.row-open{min-height:44px;touch-action:manipulation}
  input,select,textarea{font-size:16px!important}

  .app-shell{grid-template-rows:60px minmax(0,1fr) auto;min-height:100dvh;height:100dvh}
  .mobile-header{min-width:0;padding:9px 14px;padding-top:max(9px,env(safe-area-inset-top));box-shadow:0 2px 14px rgba(23,63,53,.05);z-index:10}
  .mobile-header .brand{font-size:16px;min-width:0}
  .mobile-header .brand-mark{width:36px;height:36px;border-radius:10px}
  .mobile-header .icon-btn{width:42px;height:42px;min-height:42px}
  .workspace-main{min-height:0;min-width:0}
  .view{height:100%;padding:16px 12px calc(26px + env(safe-area-inset-bottom));scroll-behavior:smooth;overscroll-behavior-y:contain}

  .mobile-nav{display:flex;align-items:stretch;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:6px 6px max(7px,env(safe-area-inset-bottom));box-shadow:0 -3px 18px rgba(23,63,53,.06);z-index:20;scroll-snap-type:x proximity}
  .mobile-nav::-webkit-scrollbar{display:none}
  .mobile-nav button{flex:1 0 66px;min-width:66px;min-height:52px;padding:4px 3px;border-radius:10px;scroll-snap-align:center;white-space:nowrap}
  .mobile-nav button span{font-size:20px;line-height:1}
  .mobile-nav button.active{background:var(--mint);color:var(--forest)}

  .page-head{align-items:flex-start;gap:11px;flex-wrap:wrap;margin-bottom:15px}
  .page-head>div:first-child{min-width:0;flex:1 1 210px}
  .page-head h2{font-size:20px;line-height:1.2}
  .page-head p{line-height:1.45}
  .page-head>.btn{font-size:12px!important;padding:10px 13px;min-height:42px}
  .page-head>.btn:before{content:none!important}
  .page-head>.row-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .page-head>.row-actions .btn{width:100%;font-size:11px!important;padding:9px 7px}

  .stats-grid{gap:8px;margin-bottom:14px}
  .stat-card{min-width:0;padding:13px}
  .stat-card .stat-icon{width:34px;height:34px;margin-bottom:10px}
  .stat-card small{display:block;font-size:10px;line-height:1.25}
  .stat-card strong{font-size:17px;overflow-wrap:anywhere}
  .panel{border-radius:14px}
  .panel-head{padding:14px}
  .panel-body{padding:14px}

  .toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-bottom:12px}
  .toolbar>*{width:100%;max-width:none!important;margin:0!important}
  .toolbar .search{max-width:none}
  .toolbar .btn{width:100%}
  .segmented{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}
  .segmented::-webkit-scrollbar{display:none}
  .segmented button{flex:1 0 auto;min-height:40px;white-space:nowrap}

  .data-table tr{margin:0 0 9px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fff}
  .data-table tr:first-child{border-top:1px solid var(--line)}
  .data-table td{padding:4px 0;line-height:1.4;overflow-wrap:anywhere}
  .data-table td:last-child{position:static;margin-top:8px;padding-top:8px;border-top:1px solid #edf0ed}
  .data-table td:last-child button,.data-table td:last-child .row-open{width:100%;min-height:40px}
  .data-table .client-cell{padding-right:0}
  .data-table .avatar{flex:0 0 35px}
  .data-table .row-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .data-table .row-actions button{min-height:40px}

  .modal{width:100%;height:100dvh;max-height:100dvh}
  .modal-card{height:100dvh;max-height:100dvh}
  .modal-card>header{position:relative;padding:calc(14px + env(safe-area-inset-top)) 15px 13px;align-items:center;background:#fafbf8;z-index:2}
  .modal-card>header .eyebrow{margin-bottom:4px}
  .modal-card>header h2{font-size:18px;line-height:1.2}
  .modal-card>header .icon-btn{flex:none;width:42px;height:42px}
  .modal-body{padding:15px 14px calc(22px + env(safe-area-inset-bottom))}
  .modal-body label{margin-bottom:13px}
  .modal-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
  .modal-actions .btn{width:100%;min-width:0;padding:11px 8px}
  .modal-actions .btn:only-child{grid-column:1/-1}
  .animal-detail-grid{grid-template-columns:1fr}
  .animal-detail-grid>div{padding:10px 11px}

  .sales-home-head{align-items:flex-start;gap:10px}
  .sales-home-head .btn{flex:none;padding:9px 11px;font-size:11px}
  .sales-grid{grid-template-columns:1fr;gap:12px}
  .sale-card{border-radius:15px}
  .sale-photo{height:auto;aspect-ratio:16/10}
  .sale-card-body{padding:13px 14px 15px}
  .sale-card-body h3{font-size:14px}
  .sale-card-body p:not(.eyebrow){font-size:11px}
  .sale-price{font-size:16px}
  .sale-main-photo{height:auto;min-height:230px;max-height:55vh;aspect-ratio:4/3}
  .sale-detail-head{gap:8px;margin-top:13px}
  .sale-detail .modal-actions{grid-template-columns:1fr}
  .sale-gallery button{flex-basis:76px;height:58px}

  .sale-banners{gap:9px;margin-bottom:16px;padding-bottom:5px}
  .sale-banner{aspect-ratio:16/8;border-radius:13px}
  .sale-banner figcaption{left:9px;right:9px;bottom:9px;max-width:none;font-size:10px}
  .banner-upload-form .btn{margin-bottom:13px;width:100%}
  .banner-manager-item{grid-template-columns:82px minmax(0,1fr);padding:9px}
  .banner-manager-item>img{width:82px;height:50px}
  .banner-manager-item .banner-toggle{grid-column:1/2;justify-content:center}
  .banner-manager-item .btn{grid-column:2/3;width:100%}

  .financial-hero{padding:15px;border-radius:14px}
  .financial-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .financial-summary>div{padding:10px 8px}
  .financial-summary strong{font-size:12px;overflow-wrap:anywhere}
  .financial-installment{grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:10px}
  .chat-messages{padding:10px;border-radius:12px}
  .chat-form{position:sticky;bottom:0;background:#fafbf8;padding-top:7px}
  .toast{bottom:calc(70px + env(safe-area-inset-bottom));font-size:12px}
}

@media(max-width:380px){
  .view{padding-left:9px;padding-right:9px}
  .stats-grid{grid-template-columns:1fr}
  .financial-summary{grid-template-columns:1fr}
  .modal-actions{grid-template-columns:1fr}
  .page-head>.row-actions{grid-template-columns:1fr}
}

.super-panel{border-top:3px solid var(--gold)}.super-admin-email{display:block;font-size:10px;margin:3px 0;color:var(--forest)}.super-table td:nth-child(4) small{display:block;margin-top:4px;color:var(--muted)}
@media(max-width:720px){.super-table td:last-child{border-top:0}.super-table td:last-child .btn{width:100%}}

/* Dados contratuais: identificação clara das partes e formulário do vendedor. */
.legal-profile-page-head{align-items:center}.legal-profile-page-head .eyebrow{margin:0 0 6px}.legal-profile-page-head .status{flex:none}.legal-profile-intro{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:16px 18px;border:1px solid #bfd4c6;border-radius:15px;background:linear-gradient(135deg,#edf6f0,#fff)}.legal-profile-intro-icon{width:44px;height:44px;flex:none;display:grid;place-items:center;border-radius:13px;background:var(--forest);color:#fff;font:700 22px 'Playfair Display',serif}.legal-profile-intro strong,.legal-profile-intro p{display:block;margin:0}.legal-profile-intro p{margin-top:4px;color:var(--muted);font-size:11px;line-height:1.5}.legal-contract-panel{max-width:980px;margin:0 auto}.legal-profile-progress{padding:17px 22px;border-bottom:1px solid var(--line);background:#f8faf8}.legal-profile-progress>div{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px}.legal-profile-progress strong{font-size:12px}.legal-profile-progress small{color:var(--muted);font-size:10px}.legal-profile-progress>span{display:block;height:7px;overflow:hidden;border-radius:10px;background:#e4ebe6}.legal-profile-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--forest),#4a856f);transition:width .25s}.legal-profile-form{padding:4px 22px 22px}.legal-form-section{padding:21px 0;border-bottom:1px solid #edf0ed}.legal-form-section>header{display:flex;align-items:flex-start;gap:11px;margin-bottom:17px}.legal-form-section>header>span{width:30px;height:30px;flex:none;display:grid;place-items:center;border-radius:9px;background:var(--mint);color:var(--forest);font-size:11px;font-weight:800}.legal-form-section h3,.legal-form-section p{margin:0}.legal-form-section h3{font-size:14px}.legal-form-section p{margin-top:3px;color:var(--muted);font-size:10px}.legal-profile-form label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;color:var(--ink);font-size:11px;font-weight:700}.legal-profile-form label>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.legal-profile-form label b{padding:3px 6px;border-radius:6px;background:#f4ead8;color:#90651f;font-size:7px;letter-spacing:.04em;text-transform:uppercase}.legal-profile-form label>small{color:var(--muted);font-size:8px;font-weight:500;line-height:1.4}.legal-profile-form input{width:100%;min-height:43px;padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);outline:none;transition:border-color .18s,box-shadow .18s}.legal-profile-form input:focus{border-color:var(--forest-2);box-shadow:0 0 0 3px rgba(35,89,74,.1)}.legal-profile-form input:required:invalid:not(:placeholder-shown){border-color:#d8b0a9}.legal-form-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:20px}.legal-form-footer strong,.legal-form-footer small{display:block}.legal-form-footer strong{font-size:11px}.legal-form-footer small{max-width:520px;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4}.legal-form-footer .btn{flex:none;min-width:210px}
@media(max-width:720px){.legal-profile-page-head{align-items:flex-start;gap:10px}.legal-profile-page-head .status{font-size:8px}.legal-profile-intro{align-items:flex-start;padding:13px}.legal-profile-intro-icon{width:37px;height:37px;border-radius:11px;font-size:18px}.legal-contract-panel{margin:0}.legal-profile-progress{padding:14px}.legal-profile-progress>div{align-items:flex-start}.legal-profile-form{padding:2px 14px 18px}.legal-form-section{padding:18px 0}.legal-form-section>header{margin-bottom:14px}.legal-profile-form .form-grid{grid-template-columns:1fr}.legal-profile-form .span-2{grid-column:span 1}.legal-profile-form input{font-size:16px}.legal-form-footer{align-items:stretch;flex-direction:column}.legal-form-footer .btn{width:100%;min-width:0}}
.contract-seller-selector>.panel-head{align-items:center}.contract-seller-selector>.panel-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.contract-seller-picker{display:grid;gap:18px;padding:22px}.contract-seller-picker>label{display:grid;gap:8px;color:var(--ink);font-size:11px;font-weight:700}.contract-seller-picker select{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink)}.contract-seller-picker>.btn{justify-self:end;min-width:250px}.contract-seller-summary{padding:18px;border:1px solid #cbdcd0;border-radius:14px;background:#f7faf8}.contract-seller-summary-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:18px}.contract-seller-summary-head strong,.contract-seller-summary-head small{display:block}.contract-seller-summary-head small{margin-top:3px;color:var(--muted);font-size:9px}.contract-seller-summary .animal-detail-grid{margin:0}.contract-seller-empty{padding:28px 20px}.contract-seller-empty .btn{margin-top:12px}
@media(max-width:720px){.contract-seller-selector>.panel-head{align-items:stretch;flex-direction:column}.contract-seller-selector>.panel-head .btn{width:100%}.contract-seller-picker{padding:14px}.contract-seller-picker>.btn{width:100%;min-width:0}.contract-seller-summary{padding:14px}.contract-seller-summary-head{grid-template-columns:auto minmax(0,1fr)}.contract-seller-summary-head>.status{grid-column:1/-1;width:max-content}.registration-tabs{overflow-x:auto;justify-content:flex-start}.registration-tabs button{flex:none}}
.overview-menu-panel{margin-bottom:20px}.overview-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}.overview-menu-button{min-width:0;min-height:76px;border:1px solid var(--line);border-radius:13px;background:#f7f9f6;color:var(--forest);padding:11px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-weight:700;font-size:11px;text-align:center;transition:background .2s,border-color .2s,transform .2s}.overview-menu-button:hover{background:var(--mint);border-color:#bfd2c5;transform:translateY(-1px)}.overview-menu-icon{font-size:22px;line-height:1}
.overview-menu-button.agenda-pending{position:relative;background:#fff0ef;border-color:#d96a61;color:#a93636}.overview-menu-button.agenda-pending:hover{background:#f9dfdc;border-color:#c94d45}.overview-alert-count{position:absolute;right:8px;top:7px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#c83f3f;color:#fff;display:grid;place-items:center;font-size:9px;line-height:1;box-shadow:0 2px 6px rgba(181,73,73,.25)}
.stat-card.proposal-open{border-color:#d96a61;border-left:5px solid #bd3f3f;background:linear-gradient(135deg,#fff0ef,#fff8f6);box-shadow:0 7px 22px rgba(181,73,73,.12)}.stat-card.proposal-open .stat-icon{background:#bd3f3f;color:#fff}.stat-card.proposal-open>small,.stat-card.proposal-open>strong{color:#922f2f}.stat-card.proposal-open .trend{background:#bd3f3f;color:#fff}
.dashboard-agenda-alert{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;margin:0 0 18px;padding:16px 18px;border:1px solid #d96a61;border-left:6px solid #b93636;border-radius:15px;background:linear-gradient(110deg,#fff0ef,#fff8f5);color:#822d2d;text-align:left;box-shadow:0 7px 22px rgba(181,73,73,.14)}.dashboard-agenda-alert:hover{background:linear-gradient(110deg,#fbe2df,#fff3ef);transform:translateY(-1px)}.dashboard-agenda-alert-icon{position:relative;width:48px;height:48px;border-radius:14px;background:#bd3f3f;color:#fff;display:grid;place-items:center;font-size:24px}.dashboard-agenda-alert-icon i{position:absolute;right:-2px;top:-2px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#ffcc4d;box-shadow:0 0 0 4px rgba(185,54,54,.12)}.dashboard-agenda-alert-copy{min-width:0}.dashboard-agenda-alert-copy small,.dashboard-agenda-alert-copy strong,.dashboard-agenda-alert-copy>span{display:block}.dashboard-agenda-alert-copy small{margin-bottom:4px;font-size:9px;font-weight:800;letter-spacing:.15em}.dashboard-agenda-alert-copy strong{font-size:17px}.dashboard-agenda-alert-copy>span{margin-top:4px;color:#9b5151;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-agenda-alert>b{font-size:11px;white-space:nowrap}.agenda-home.has-pending{border-color:#e3aaa5;border-top:4px solid #bd3f3f}.agenda-home.has-pending .panel-head{background:#fff5f3}.agenda-home.has-pending .panel-head h3{color:#9f3434}
@media(max-width:720px){.overview-menu-panel{margin-bottom:14px}.overview-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-bottom:8px}.overview-menu-button{width:100%;min-height:62px;padding:8px 5px;gap:5px;font-size:9px}.overview-menu-icon{font-size:18px}}
@media(max-width:720px){.dashboard-agenda-alert{grid-template-columns:auto minmax(0,1fr);gap:11px;margin-bottom:14px;padding:13px;border-left-width:5px}.dashboard-agenda-alert-icon{width:42px;height:42px;font-size:21px}.dashboard-agenda-alert-copy strong{font-size:14px}.dashboard-agenda-alert-copy>span{white-space:normal;line-height:1.35}.dashboard-agenda-alert>b{grid-column:2;margin-top:-2px;font-size:10px}}
.auth-form select{width:100%;border:1px solid var(--line);background:#fff;border-radius:11px;padding:13px 40px 13px 14px;outline:none;color:var(--ink);transition:.2s}.auth-form select:focus{border-color:var(--forest-2);box-shadow:0 0 0 3px rgba(35,89,74,.1)}.auth-form select:disabled{background:#f1f3f0;color:var(--muted)}.selected-haras{display:flex;align-items:center;gap:12px;margin:15px 0 18px;padding:12px 14px;border:1px solid #cbdcd2;border-radius:13px;background:linear-gradient(135deg,#edf5ef,#fff)}.selected-haras-mark{width:38px;height:38px;flex:none;border-radius:11px;background:var(--forest);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:700}.selected-haras small{display:block;color:var(--muted);font-size:9px;letter-spacing:.1em;margin-bottom:3px}.selected-haras strong{display:block;color:var(--forest);font-size:14px}.haras-choice-empty{padding:12px;border-radius:11px;background:#f8e8e6;color:var(--danger);font-size:12px;line-height:1.45}
.agenda-home{margin-top:18px}.agenda-home .panel-head>div small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.agenda-preview-item{width:100%;display:grid;grid-template-columns:90px minmax(0,1fr);gap:13px;align-items:center;border:0;border-bottom:1px solid var(--line);background:transparent;padding:12px 4px;text-align:left;color:var(--ink)}.agenda-preview-item:hover{background:#f7f9f6}.agenda-preview-item>span:last-child{min-width:0}.agenda-preview-item strong,.agenda-preview-item small{display:block}.agenda-preview-item small{color:var(--muted);font-size:10px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.agenda-preview-date{color:var(--forest);font-size:11px;font-weight:700}.agenda-home .btn-block{margin-top:14px}.agenda-filters{width:min(100%,420px);margin-bottom:18px}.agenda-list{display:flex;flex-direction:column;gap:11px}.agenda-card{display:grid;grid-template-columns:72px minmax(0,1fr);gap:16px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px 17px;box-shadow:0 2px 5px rgba(20,40,33,.03)}.agenda-card.overdue{border-left:3px solid var(--danger)}.agenda-card.completed{opacity:.7}.agenda-card.completed h3{text-decoration:line-through}.agenda-date-box{height:70px;border-radius:13px;background:var(--mint);color:var(--forest);display:flex;flex-direction:column;align-items:center;justify-content:center;text-transform:uppercase}.agenda-date-box strong{font-size:25px;line-height:1}.agenda-date-box span{font-size:10px;font-weight:700;margin-top:5px}.agenda-card-content{min-width:0}.agenda-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.agenda-card-head h3{font-size:15px;margin:2px 0 4px}.agenda-card-head small{color:var(--muted);font-size:10px}.agenda-card-content>p{margin:11px 0;color:#4f5f58;line-height:1.5;white-space:pre-wrap}.agenda-stock-link{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}.agenda-stock-link span{padding:6px 9px;border-radius:9px;background:var(--mint);color:var(--forest);font-size:10px;font-weight:700}.agenda-stock-fields{margin:15px 0;padding:14px;border:1px solid #cbdcd2;border-radius:13px;background:#f3f8f4}.agenda-stock-fields h3{margin:0 0 4px;color:var(--forest);font-size:13px}.agenda-stock-fields>p{margin:0 0 12px;font-size:10px;line-height:1.45}.agenda-card .row-actions{margin-top:12px}.agenda-card .agenda-delete{color:var(--danger);background:#f8e8e6}
.agenda-card.agenda-diet{border-left:4px solid #d89b3c;background:linear-gradient(110deg,#fffdf8,#fff)}.agenda-card.agenda-diet .agenda-date-box{background:#fff0cf;color:#8a5a12}.agenda-card.agenda-diet .row-actions{grid-template-columns:minmax(0,220px)}
.agenda-card.agenda-training{border-left:4px solid #4f86a5;background:linear-gradient(110deg,#f7fbfd,#fff)}.agenda-card.agenda-training .agenda-date-box{background:#e3f0f6;color:#315f7a}.agenda-card.agenda-training .row-actions{grid-template-columns:minmax(0,220px)}
@media(max-width:720px){.agenda-home{margin-top:12px}.agenda-home .panel-head{align-items:center}.agenda-preview-item{grid-template-columns:78px minmax(0,1fr);padding:11px 2px}.agenda-filters{width:100%}.agenda-card{grid-template-columns:54px minmax(0,1fr);gap:11px;padding:12px}.agenda-date-box{height:58px}.agenda-date-box strong{font-size:20px}.agenda-card-head{flex-direction:column;gap:8px}.agenda-stock-fields{padding:11px}.agenda-card .row-actions{display:grid;grid-template-columns:1fr 1fr}.agenda-card .row-actions button{min-height:40px}.agenda-card .agenda-delete{grid-column:1/-1}}
@media(max-width:720px){.agenda-list{gap:7px}.agenda-filters{margin-bottom:11px}.agenda-filters button{padding:7px 5px;font-size:10px}.agenda-card{grid-template-columns:43px minmax(0,1fr);gap:9px;padding:9px 10px;border-radius:12px}.agenda-card.agenda-diet,.agenda-card.agenda-training{border-left-width:3px}.agenda-date-box{width:43px;height:46px;border-radius:10px}.agenda-date-box strong{font-size:17px}.agenda-date-box span{font-size:8px;margin-top:2px}.agenda-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:5px}.agenda-card-head h3{font-size:13px;line-height:1.2;margin:0 0 2px}.agenda-card-head small{font-size:9px}.agenda-card-head .status{padding:4px 6px;font-size:8px}.agenda-card-head .status:before{width:5px;height:5px}.agenda-stock-link{gap:4px;margin:6px 0}.agenda-stock-link span{padding:4px 6px;border-radius:7px;font-size:8px}.agenda-card-content>p{margin:6px 0;font-size:10px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.agenda-card .row-actions,.agenda-card.agenda-diet .row-actions,.agenda-card.agenda-training .row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}.agenda-card.agenda-diet .row-actions,.agenda-card.agenda-training .row-actions{grid-template-columns:minmax(0,1fr)}.agenda-card .row-actions button{min-height:34px;padding:5px 6px;font-size:9px}.agenda-card .agenda-delete{grid-column:auto}.agenda-preview-item{grid-template-columns:65px minmax(0,1fr);gap:8px;padding:8px 2px}.agenda-preview-item strong{font-size:11px}.agenda-preview-item small,.agenda-preview-date{font-size:9px}}
.agenda-animal-picker>strong,.agenda-animal-picker>small{display:block}.agenda-animal-picker>strong{font-size:12px}.agenda-animal-picker>small{margin:4px 0 7px;color:var(--muted);font-size:9px}.agenda-stock-fields .animal-multi-list{max-height:180px;margin-bottom:2px}.agenda-stock-fields .animal-multi-list input:disabled+span{opacity:.5}.agenda-schedules-extra{display:flex;flex-direction:column;gap:8px}.agenda-schedule-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px;gap:9px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:12px;background:#f8faf8}.agenda-schedule-row label{margin:0}.agenda-schedule-row>button{height:42px;border:0;border-radius:10px;background:#f7e2e0;color:var(--danger);font-size:20px}.agenda-add-schedule{margin:-2px 0 16px;border:1px dashed #a9bdb1;border-radius:11px;background:#f3f8f4;color:var(--forest);padding:11px;font-weight:700}
.agenda-diet-empty{display:block;margin:-9px 0 13px;padding:8px 10px;border-radius:8px;background:#fff4df;color:#8a641f;font-size:9px}
@media(max-width:520px){.agenda-schedule-row{grid-template-columns:1fr 42px}.agenda-schedule-row label{grid-column:1}.agenda-schedule-row>button{grid-column:2;grid-row:1/3;height:100%}}
@media(min-width:721px){.sidebar{min-height:0}.sidebar>.brand,.sidebar>.workspace,.sidebar-foot{flex:none}.main-nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:3px}.main-nav::-webkit-scrollbar{width:5px}.main-nav::-webkit-scrollbar-thumb{background:#d4ddd7;border-radius:10px}.sidebar-foot{margin-top:8px;background:#f9faf7}}
.integration-alert{display:flex;align-items:flex-start;gap:13px;margin-bottom:18px;padding:14px 16px;border:1px solid #cbdcd2;border-radius:14px;background:#edf5ef}.integration-alert>span{font-size:20px}.integration-alert strong{display:block;color:var(--forest);margin-bottom:4px}.integration-alert p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.integration-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:19px;box-shadow:0 3px 12px rgba(20,40,33,.04)}.integration-card.connected{border-top:3px solid var(--forest)}.integration-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:13px}.integration-logo{width:44px;height:44px;border-radius:13px;background:var(--mint);color:var(--forest);display:grid;place-items:center;font-size:22px;font-weight:700}.integration-card h3{font-size:16px;margin:2px 0 5px}.integration-card header p{font-size:10px;color:var(--muted);line-height:1.4;margin:0}.integration-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:19px 0}.integration-details>div{padding:11px 12px;border-radius:11px;background:#f5f7f4}.integration-details small,.integration-details strong{display:block}.integration-details small{color:var(--muted);font-size:8px;letter-spacing:.08em;margin-bottom:5px}.integration-details strong{font-size:11px;overflow-wrap:anywhere}.integration-error{color:var(--danger);background:#f8e8e6;padding:10px;border-radius:10px;font-size:10px}.integration-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:14px;border-top:1px solid var(--line)}.integration-card footer>a{color:var(--forest);font-size:10px}.integration-card footer .row-actions{flex-wrap:wrap;justify-content:flex-end}.integration-card footer .btn{font-size:10px;padding:8px 11px}.integration-auto span{display:flex;align-items:center;gap:9px}.integration-auto input{width:auto!important}.integration-warning{padding:10px 12px;border-radius:10px;background:#f7edda;color:#8a641f;font-size:10px}
@media(max-width:900px) and (min-width:721px){.integration-grid{grid-template-columns:1fr}.integration-card footer{align-items:flex-start;flex-direction:column}.integration-card footer .row-actions{width:100%;justify-content:flex-start}}
@media(max-width:720px){.integration-grid{grid-template-columns:1fr}.integration-card{padding:14px}.integration-card header{grid-template-columns:auto minmax(0,1fr)}.integration-card header>.status{grid-column:1/-1;width:max-content}.integration-details{grid-template-columns:1fr 1fr;margin:14px 0}.integration-card footer{align-items:stretch;flex-direction:column}.integration-card footer .row-actions{display:grid;grid-template-columns:1fr 1fr}.integration-card footer .row-actions .btn{grid-column:1/-1;width:100%}}
.animal-multi-list{max-height:210px;overflow-y:auto;border:1px solid var(--line);border-radius:11px;background:#fff;margin-top:8px;padding:5px}.modal .animal-multi-list label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;padding:9px 10px;border-radius:8px;font-weight:500}.modal .animal-multi-list label:hover{background:#f2f6f2}.animal-multi-list input{width:auto!important;flex:none}.animal-multi-list span{min-width:0}.animal-multi-list strong,.animal-multi-list small{display:block}.animal-multi-list small{color:var(--muted);font-size:9px;margin-top:2px}.movement-batch-total{display:block;margin-top:8px;color:var(--forest);font-weight:700;line-height:1.4}
@media(max-width:720px){.animal-multi-list{max-height:180px}.modal .animal-multi-list label{min-height:42px;padding:8px}}
.report-page-head{margin-bottom:18px}.report-pdf-badge{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,var(--forest),#2f6758);box-shadow:0 8px 20px rgba(23,63,53,.18);color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em}.report-type-section{margin-bottom:16px}.report-section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:10px}.report-section-title h3{margin:0 0 3px;font-size:14px}.report-section-title p,.report-section-title>small{margin:0;color:var(--muted);font-size:9px}.report-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.report-type-card{position:relative;min-width:0;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 2px 7px rgba(20,40,33,.035);transition:border-color .18s,transform .18s,box-shadow .18s}.report-type-card:hover{transform:translateY(-1px);border-color:#a9bdb1;box-shadow:0 6px 15px rgba(20,40,33,.07)}.report-type-card>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#edf4ef;color:var(--forest);font-size:19px}.report-type-card strong,.report-type-card small{display:block;min-width:0}.report-type-card strong{font-size:11px;line-height:1.2}.report-type-card small{display:-webkit-box;margin-top:3px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:var(--muted);font-size:8px;line-height:1.3}.report-type-card>b{position:absolute;right:8px;top:8px;width:17px;height:17px;display:none;place-items:center;border-radius:50%;background:var(--forest);color:#fff;font-size:9px}.report-type-card.active{border-color:var(--forest);background:linear-gradient(145deg,#f1f7f3,#fff);box-shadow:0 0 0 2px rgba(23,63,53,.08)}.report-type-card.active>span{background:var(--forest);color:#fff}.report-type-card.active>b{display:grid}.report-filter{padding:0;margin-bottom:18px;overflow:hidden}.report-builder-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;border-bottom:1px solid var(--line);background:#f8faf8}.report-builder-head>span{color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.report-description{display:flex;align-items:center;gap:10px;color:var(--forest)}.report-description>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--mint);font-size:18px}.report-description strong,.report-description small{display:block}.report-description strong{font-size:12px}.report-description small{max-width:560px;margin-top:2px;color:var(--muted);font-size:9px}.report-filter-grid{display:grid;grid-template-columns:1.2fr minmax(150px,.8fr) minmax(150px,.8fr) auto;gap:12px;align-items:end;padding:15px 16px}.report-filter-grid label{margin:0}.report-date-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-actions{display:grid;grid-template-columns:auto auto;gap:8px}.report-actions .btn{min-height:42px;white-space:nowrap;padding-inline:13px}.report-preview{min-width:0}.report-empty{min-height:255px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);border-style:dashed;background:rgba(255,255,255,.6)}.report-empty>span{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:var(--mint);color:var(--forest);font-size:25px}.report-empty h3{margin:12px 0 4px;color:var(--ink)}.report-empty p{margin:0;font-size:10px}.report-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}.report-result{overflow:hidden}.report-result .panel-head{padding:14px 17px;background:#fbfcfb}.report-result .panel-head small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.report-table{min-width:760px}.report-table th{position:sticky;top:0;background:#f1f5f2}.report-table th,.report-table td{font-size:10px}.report-limit{margin:0;padding:11px 16px;color:var(--muted);font-size:9px;border-top:1px solid var(--line)}
.report-selection-actions{display:flex;align-items:center;gap:9px}.report-selection-actions small{color:var(--muted);font-size:9px;font-weight:700}.report-selection-actions button{border:1px solid #b9c9c0;border-radius:9px;background:#fff;color:var(--forest);padding:7px 9px;font-size:9px;font-weight:700}.report-selection-actions button:hover{background:var(--mint)}.report-bundle-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px;padding:14px 16px;background:linear-gradient(135deg,#edf5ef,#fff)}.report-bundle-head>div{display:flex;align-items:center;gap:11px}.report-bundle-head>div>span{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:var(--forest);color:#fff;font-size:19px}.report-bundle-head small,.report-bundle-head strong{display:block}.report-bundle-head small{margin-bottom:3px;color:var(--muted);font-size:8px;letter-spacing:.08em}.report-bundle-head strong{font-size:13px}.report-bundle-list{display:flex;flex-direction:column;gap:15px}.report-bundle-section{border-top:3px solid var(--forest)}.report-section-summary{display:flex;flex-wrap:wrap;gap:7px;padding:10px 16px;border-top:1px solid var(--line);background:#f8faf8}.report-section-summary>span{min-width:120px;padding:7px 9px;border-radius:9px;background:#fff;border:1px solid var(--line)}.report-section-summary small,.report-section-summary strong{display:block}.report-section-summary small{color:var(--muted);font-size:7px;text-transform:uppercase;letter-spacing:.05em}.report-section-summary strong{margin-top:2px;color:var(--forest);font-size:10px}
@media(max-width:1100px){.report-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-grid{grid-template-columns:1fr 1fr}.report-actions{grid-column:1/-1;justify-content:end}}
@media(max-width:720px){.report-page-head{align-items:center}.report-pdf-badge{width:44px;height:44px;border-radius:13px;font-size:9px}.report-section-title{align-items:start}.report-section-title>small{display:none}.report-type-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.report-type-card{grid-template-columns:30px minmax(0,1fr);gap:7px;min-height:62px;padding:9px;border-radius:11px}.report-type-card>span{width:30px;height:30px;border-radius:8px;font-size:15px}.report-type-card strong{font-size:9px}.report-type-card small{font-size:7px;-webkit-line-clamp:1}.report-type-card>b{right:5px;top:5px;width:14px;height:14px;font-size:7px}.report-builder-head{align-items:flex-start;padding:11px 12px}.report-builder-head>span{display:none}.report-description>span{width:30px;height:30px;font-size:15px}.report-description small{font-size:8px;line-height:1.35}.report-filter-grid{grid-template-columns:1fr 1fr;gap:9px;padding:12px}.report-date-fields{grid-column:1/-1}.report-filter-grid>label{grid-column:span 1}.report-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}.report-actions .btn{min-height:38px;padding:7px 5px;font-size:9px}.report-empty{min-height:190px}.report-result .panel-head{align-items:flex-start;gap:9px}.report-result .panel-head .btn{padding:8px 10px;font-size:9px}.report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-table{min-width:0}.report-table td{font-size:10px}.report-table td:before{max-width:45%}}
@media(max-width:720px){.report-selection-actions{flex-direction:column;align-items:flex-end;gap:4px}.report-selection-actions button{padding:6px 7px;font-size:8px}.report-bundle-head{align-items:stretch;flex-direction:column;padding:12px}.report-bundle-head .btn{width:100%}.report-section-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px}.report-section-summary>span{min-width:0}.report-bundle-list{gap:11px}}
@media(max-width:430px){.report-type-card small{display:none}.report-type-card{min-height:54px}.report-filter-grid{grid-template-columns:1fr}.report-date-fields{grid-template-columns:1fr 1fr}.report-filter-grid>label,.report-actions{grid-column:1}.report-actions{grid-template-columns:1fr 1fr}.report-selection-actions small{display:none}}

.reproduction-sheet-wrap{overflow:auto!important}.reproduction-table{min-width:760px}.reproduction-table td small,.reproduction-history-sheet td small{display:block;margin-top:3px;color:var(--muted)}.reproduction-history-sheet .row-actions{flex-wrap:nowrap}.reproduction-notes{margin-top:16px}.reproduction-notes p{margin:0;white-space:pre-wrap;line-height:1.55}
@media(max-width:720px){.reproduction-table{min-width:0}.reproduction-table td:last-child{position:static}.reproduction-table td:last-child .row-open{width:100%}}
.animal-avatar{border-radius:50%;overflow:hidden;flex:none}.animal-avatar img{width:100%;height:100%;display:block;object-fit:cover}.animal-photo-field{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;margin-bottom:18px}.animal-photo-field label{flex:1;margin:0}.animal-photo-field small{color:var(--muted);font-weight:400}.animal-form-avatar{width:76px;height:76px;font-size:28px}.animal-detail-identity{display:flex;align-items:center;gap:14px;background:var(--mint);border-radius:14px;padding:14px 16px;margin-bottom:18px}.animal-detail-identity>div strong,.animal-detail-identity>div small{display:block}.animal-detail-identity>div strong{font-size:17px;color:var(--forest)}.animal-detail-identity>div small{color:var(--muted);margin-top:4px}.animal-detail-avatar{width:72px;height:72px;font-size:27px;background:#fff}
.abccmm-import-card{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:20px;padding:14px 16px;border:1px solid #d8c38f;border-radius:15px;background:linear-gradient(135deg,#f5edda,#fff)}.abccmm-horse-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:var(--forest);color:#d7bd82}.abccmm-horse-icon svg{width:44px;height:44px;fill:currentColor}.abccmm-import-card small,.abccmm-import-card strong{display:block}.abccmm-import-card small{margin-bottom:4px;color:#94702e;font-size:8px;font-weight:800;letter-spacing:.11em}.abccmm-import-card strong{color:var(--forest);font-size:13px}.abccmm-import-card p{margin:3px 0 0;color:var(--muted);font-size:10px}.abccmm-import-card .btn{white-space:nowrap}
@media(max-width:720px){.animal-photo-field{align-items:flex-start}.animal-form-avatar{width:64px;height:64px}.animal-detail-avatar{width:62px;height:62px}}
@media(max-width:720px){.abccmm-import-card{grid-template-columns:50px minmax(0,1fr);padding:12px}.abccmm-horse-icon{width:50px;height:50px}.abccmm-horse-icon svg{width:38px;height:38px}.abccmm-import-card .btn{grid-column:1/-1;width:100%}}
.equimarket-state{display:block;margin-top:11px;color:var(--muted);font-size:9px;font-weight:700}.equimarket-state.published{color:var(--forest)}.equimarket-publish-panel{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#edf4ef;border:1px solid #cfe0d4;border-radius:13px;padding:14px;margin:14px 0}.equimarket-publish-panel strong,.equimarket-publish-panel small{display:block}.equimarket-publish-panel small{color:var(--muted);margin-top:4px}.equimarket-publish-panel .btn{flex:none}
.sale-offer-type{display:inline-flex;width:max-content;margin:0 0 8px;padding:5px 9px;border-radius:999px;background:#f1e9f4;color:#651b78;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.sale-offer-type.offer-venda_animal{background:#19734d;color:#fff}.sale-offer-type.offer-porcentagem_cavalo{background:#c45117;color:#fff}.sale-offer-type.offer-cobertura{background:#651b78;color:#fff}
.document-preview{margin-bottom:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.document-preview>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px}.document-preview>header strong,.document-preview>header small{display:block}.document-preview>header small{margin-top:4px;color:var(--muted);font-size:9px}.proposal-document-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:18px;border:0;background:rgba(8,18,15,.78)}.proposal-document-viewer::backdrop{background:rgba(8,18,15,.78)}.proposal-document-viewer[open]{display:grid;place-items:center}.proposal-document-viewer-shell{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(860px,calc(100% - 28px));height:min(76dvh,680px);overflow:hidden;border-radius:17px;background:#f5f7f5;box-shadow:0 24px 70px rgba(0,0,0,.38)}.proposal-document-viewer-shell>header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.proposal-document-viewer-shell>header small,.proposal-document-viewer-shell>header strong{display:block}.proposal-document-viewer-shell>header small{margin-bottom:3px;color:var(--muted);font-size:8px;letter-spacing:.08em}.proposal-document-viewer-actions{display:flex;align-items:center;gap:8px}.proposal-document-viewer-shell>main{position:relative;display:grid;place-items:center;min-height:0;padding:12px}.proposal-document-viewer-shell iframe{width:100%;height:100%;border:0;border-radius:10px;background:#fff}.proposal-document-viewer-shell main>img{max-width:100%;max-height:100%;object-fit:contain;border-radius:10px}.proposal-document-fallback{position:absolute;right:22px;bottom:16px;margin:0;padding:7px 10px;border-radius:8px;background:rgba(15,35,29,.88);color:#fff;font-size:9px}.proposal-document-fallback a{color:#fff;text-decoration:underline}
@media(max-width:720px){.proposal-document-viewer{padding:8px}.proposal-document-viewer-shell{width:calc(100% - 8px);height:84dvh;border-radius:14px}.proposal-document-viewer-shell>header{align-items:flex-start;padding:10px}.proposal-document-viewer-actions{gap:5px}.proposal-document-viewer-actions .btn{padding:8px;font-size:8px}.proposal-document-viewer-shell>main{padding:6px}.proposal-document-fallback{left:12px;right:12px;bottom:10px;text-align:center}.document-preview>header{padding:11px}.document-preview>header .btn{padding:8px 10px}}
@media(max-width:720px){.equimarket-publish-panel{align-items:stretch;flex-direction:column}.equimarket-publish-panel .btn{width:100%}}
.equimarket-login-link{text-decoration:none;border:1px solid #bfd2c5;margin-top:10px}.equimarket-login-link:hover{background:#cfe0d4}
.close-tabs-btn{height:36px;flex:none;border:1px solid #d5ded8;border-radius:10px;background:#f7f9f6;color:var(--forest);padding:0 12px;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}.close-tabs-btn:hover{background:var(--mint);border-color:#bfd2c5}
.animal-record-top-action{justify-content:flex-end;margin:-8px 0 18px}.animal-record-top-action button{background:var(--forest);color:#fff;padding:10px 14px;font-weight:700}.animal-record-top-action button:hover{background:var(--forest-2)}
.whatsapp-monitor{margin-top:34px}.whatsapp-monitor-head{align-items:end}.whatsapp-monitor .data-table small{display:block;margin-top:4px;color:var(--muted);font-size:9px}.whatsapp-monitor .integration-error{display:block;max-width:300px;margin-top:6px;font-size:9px;white-space:normal}.whatsapp-global-error{padding:12px 14px;border:1px solid #efc7c4;border-radius:12px;background:#fff5f4}.whatsapp-monitor button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:720px){.whatsapp-monitor{margin-top:25px}.whatsapp-monitor-head{align-items:stretch}.whatsapp-monitor-head .row-actions{display:grid;grid-template-columns:1fr}.whatsapp-monitor-head .row-actions button{width:100%}}
.technical-sheet-notice{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding:14px 16px;border:1px solid #c9ddcf;border-radius:13px;background:#f0f7f2}.technical-sheet-notice>span{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--forest);color:#fff;font-weight:800}.technical-sheet-notice strong,.technical-sheet-notice p{display:block;margin:0}.technical-sheet-notice p{margin-top:3px;color:var(--muted);font-size:10px}.technical-sheet-table td>small{display:block;margin-top:4px;color:var(--muted)}.technical-record-count{display:inline-block;margin:2px;padding:4px 7px;border-radius:999px;background:var(--mint);color:var(--forest);font-size:8px;font-weight:700}.technical-sheet-table .btn{white-space:nowrap}
.technical-sheet-table tr.technical-sheet-recent td{background:#e9f6ed;border-bottom-color:#c3ddca}.technical-sheet-table tr.technical-sheet-recent td:first-child{box-shadow:inset 4px 0 0 #2f8757}.technical-sheet-table tr.technical-sheet-recent:hover td{background:#dff1e5}.technical-recent-badges{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.technical-recent-badge{display:inline-block;width:max-content;padding:3px 7px;border-radius:999px;background:#2f8757;color:#fff;font-size:7px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.technical-recent-badge.diet{background:#b06e18}.technical-recent-badge.training{background:#4968a7}
@media(max-width:720px){.technical-sheet-notice{align-items:flex-start;padding:12px}.technical-sheet-table td:last-child .btn{width:100%}}
