:root{--md-list-width-default:300px;--md-list-width-min:220px;--md-list-width-max:400px;--md-list-width-compact:72px;--md-list-width-hidden:0px;--md-breakpoint-desktop-large:1400px;--md-breakpoint-desktop:1200px;--md-breakpoint-tablet:1024px;--md-breakpoint-mobile:768px;--md-drawer-width:85vw;--md-drawer-max-width:340px;--md-page-bg:var(--bg-warm);--md-list-bg:var(--bg-white);--md-detail-bg:var(--bg-warm);--md-list-header-bg:var(--bg-white);--md-list-header-border:#0000000f;--md-item-hover-bg:var(--surface-100);--md-item-selected-bg:var(--theme-primary-10);--md-item-selected-border:var(--theme-primary);--md-avatar-bg:var(--theme-primary);--md-avatar-shadow:0 2px 8px #6b7f4e40;--md-resize-line-color:#00000014;--md-resize-line-hover:var(--theme-primary-50);--md-resize-handle-bg:var(--surface-100);--md-resize-handle-border:#0000001f;--md-title-font-size:.85rem;--md-title-font-weight:700;--md-item-name-size:.9rem;--md-item-meta-size:.75rem;--md-badge-size:.65rem;--md-page-padding:1.5rem;--md-page-gap:1rem;--md-list-header-padding:10px 12px;--md-list-item-padding:12px 16px;--md-list-item-margin:4px 8px;--md-list-item-radius:12px;--md-panel-border:1px solid var(--surface-200);--md-list-shadow:4px 0 20px #0000000a;--md-drawer-shadow:4px 0 24px #0003;--md-card-shadow:0 2px 8px #0000000f;--md-transition:.3s cubic-bezier(.4,0,.2,1);--md-transition-fast:.15s ease;--md-transition-resize:.2s ease;--md-z-list:100;--md-z-resize:110;--md-z-drawer:1080;--md-z-drawer-overlay:1079}.pro-theme{--md-item-selected-bg:#6b7f4e1a;--md-item-selected-border:var(--pro-primary);--md-avatar-bg:var(--pro-primary);--md-avatar-shadow:0 2px 8px #6b7f4e40;--md-resize-line-hover:#6b7f4e80;--theme-primary-10:#6b7f4e1a;--theme-primary-15:#6b7f4e26;--theme-primary-25:#6b7f4e40;--theme-primary-30:#6b7f4e4d;--theme-primary-40:#6b7f4e66;--theme-primary-50:#6b7f4e80}.pro-theme .md-list-item:hover .md-item-avatar{box-shadow:0 4px 12px #6b7f4e4d}.pro-theme .md-item-avatar.large{box-shadow:0 4px 15px #6b7f4e59}.pro-theme .md-list-item.selected{box-shadow:0 2px 8px #6b7f4e26}.pro-theme .md-resize-line.active{box-shadow:0 0 8px #6b7f4e66}.pro-theme .md-resize-handle:hover .md-resize-handle-inner,.pro-theme .md-resize-handle.active .md-resize-handle-inner{box-shadow:0 2px 12px #6b7f4e4d}@media (min-width:1600px){:root{--md-list-width-default:340px;--md-list-width-max:420px}}@media (min-width:1920px){:root{--md-list-width-default:380px;--md-list-width-max:450px}}
.master-detail-layout{background:var(--md-page-bg);box-sizing:border-box;height:100%;padding:var(--md-page-padding);gap:var(--md-page-gap);display:flex;position:relative;overflow:hidden}.main-content:has(.master-detail-layout){min-height:auto;height:calc(100vh - var(--header-height,60px));max-height:calc(100vh - var(--header-height,60px));padding:0;overflow:hidden}.master-detail-layout.mobile{flex-direction:column}.md-list-panel{width:var(--list-width,var(--md-list-width-default));min-width:var(--list-width,var(--md-list-width-default));max-width:var(--list-width,var(--md-list-width-default));background:var(--md-list-bg);height:100%;transition:all var(--md-transition);z-index:var(--md-z-list);box-shadow:var(--md-list-shadow);border:var(--md-panel-border);border-radius:12px;flex-direction:column;display:flex;position:relative;overflow:visible;container:list-panel/inline-size}.md-list-panel.resizing{transition:none!important}.md-list-panel.extended{--list-width:var(--md-list-width-default)}.md-list-panel.compact{--list-width:var(--md-list-width-compact)}.md-list-panel.compact .md-list-title,.md-list-panel.compact .md-list-search,.md-list-panel.compact .md-item-info{display:none}.md-list-panel.compact .md-list-pagination{flex-direction:row;justify-content:center;gap:4px;padding:8px 4px}.md-list-panel.compact .md-list-pagination .pagination-info{display:none}.md-list-panel.compact .md-list-pagination .btn{background:var(--surface-600);width:28px;min-width:28px;height:32px;color:var(--bg-white);border:none;justify-content:center;align-items:center;padding:0;display:flex}.md-list-panel.compact .md-list-pagination .btn:hover:not(:disabled){background:var(--theme-primary);color:var(--bg-white)}.md-list-panel.compact .md-list-pagination .btn:disabled{background:var(--surface-200);color:var(--surface-400)}.md-list-panel.compact .md-list-header{flex-direction:column;justify-content:flex-start;align-items:center;gap:6px;padding:10px 6px}.md-list-panel.compact .md-list-actions{flex-direction:column;align-items:center;gap:6px;width:100%;padding:0;display:flex}.md-list-panel.compact .md-list-actions .btn{border-radius:10px;justify-content:center;align-items:center;width:48px;height:40px;padding:0;display:flex}.md-list-panel.compact .md-list-empty .btn{border-radius:10px;justify-content:center;align-items:center;width:36px;height:32px;padding:0;display:flex}.md-list-panel.compact .md-list-actions .btn-text,.md-list-panel.compact .md-list-empty .btn-text,.md-list-panel.compact .md-list-actions .btn>span,.md-list-panel.compact .md-list-empty .btn>span,.md-list-panel.compact .md-list-empty p{display:none!important}.md-list-panel.compact .md-list-empty{gap:2rem!important}.md-list-panel.compact .md-list-actions .btn svg,.md-list-panel.compact .md-list-empty .btn svg{margin:0!important}.md-list-panel.compact .md-list-actions .btn,.md-list-panel.compact .md-list-empty .btn{gap:0}.md-list-panel.compact .md-list-actions .filter-btn{display:none}.md-list-panel.compact .md-compact-actions{flex-direction:column;align-items:center;gap:8px;width:100%;display:flex}.md-list-panel.compact .md-list-item{flex-direction:column;justify-content:center;gap:6px;margin:4px 6px;padding:10px 6px}.md-list-panel.compact .md-item-avatar{border-radius:10px;width:40px;height:40px;margin:0;font-size:.8rem}.md-list-panel.hidden{--list-width:var(--md-list-width-hidden);box-shadow:none;border-right:none}.md-list-panel.hidden .md-list-header,.md-list-panel.hidden .md-list-search,.md-list-panel.hidden .md-list-content,.md-list-panel.hidden .md-list-pagination,.md-list-panel.hidden .md-resize-handle{visibility:hidden;opacity:0;display:none}.master-detail-layout.mobile .md-list-panel{top:var(--header-height,60px);width:var(--md-drawer-width);max-width:var(--md-drawer-max-width);min-width:280px;height:calc(100vh - var(--header-height,60px));z-index:var(--md-z-drawer);box-shadow:var(--md-drawer-shadow);border-radius:0;position:fixed;left:0;transform:translate(-100%)}.master-detail-layout.mobile .md-list-panel.drawer-open{transform:translate(0)}.master-detail-layout.mobile .md-list-panel.hidden.drawer-open .md-list-header,.master-detail-layout.mobile .md-list-panel.hidden.drawer-open .md-list-search,.master-detail-layout.mobile .md-list-panel.hidden.drawer-open .md-list-content,.master-detail-layout.mobile .md-list-panel.hidden.drawer-open .md-list-pagination{visibility:visible;opacity:1;display:block}.md-drawer-overlay{top:var(--header-height,60px);z-index:var(--md-z-drawer-overlay);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#00000080;animation:.25s fadeIn;position:fixed;bottom:0;left:0;right:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@media (max-width:1200px){@container list-panel (max-width:320px){.md-list-title .badge{display:none}}}@media (max-width:1024px){.master-detail-layout{height:calc(100vh - var(--header-height-mobile,56px))}.md-detail-panel{padding-top:70px}}
.md-list-header{padding:var(--md-list-header-padding);background:var(--md-list-header-bg);border-bottom:1px solid var(--md-list-header-border);flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;min-height:50px;display:flex}.md-list-title{color:var(--surface-800);font-size:var(--md-title-font-size);font-weight:var(--md-title-font-weight);letter-spacing:-.02em;white-space:nowrap;flex-shrink:1;align-items:center;gap:5px;min-width:0;margin:0;display:flex;overflow:hidden}.md-list-title svg{color:var(--theme-primary);opacity:.9;flex-shrink:0;width:16px!important;height:16px!important}.md-list-title .badge{font-size:var(--md-badge-size);flex-shrink:0;padding:.25em .5em;font-weight:600;background:var(--theme-primary-15,var(--theme-primary-15))!important;color:var(--theme-primary-dark)!important}.md-list-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:5px;margin-left:auto;display:flex}.md-list-actions .btn{white-space:nowrap;border-radius:8px;flex-shrink:0;align-items:center;gap:6px;padding:.4rem .6rem;font-size:.8rem;display:flex}.md-list-actions .btn svg{flex-shrink:0;width:14px!important;height:14px!important}.md-list-actions .btn-text{font-size:.75rem;font-weight:500}.md-list-actions .btn.archive-active{background:var(--theme-primary);border-color:var(--theme-primary);color:var(--bg-white)}.md-list-actions .btn.archive-active:hover{background:var(--theme-primary-dark);border-color:var(--theme-primary-dark);color:var(--bg-white)}@container list-panel (max-width:320px){.md-list-actions .btn-text,.md-list-actions .btn>span,.md-list-empty .btn-text,.md-list-empty .btn>span{display:none!important}.md-list-actions .btn,.md-list-empty .btn{gap:0;padding:.4rem}.md-list-empty .btn svg{margin:0!important}}.md-compact-actions{display:none}.md-list-search{background:var(--bg-white);border-bottom:1px solid #0000000a;padding:12px 16px}.md-list-search .input-group{background:var(--surface-100);transition:all var(--md-transition-fast);border:2px solid #0000;border-radius:12px;overflow:hidden}.md-list-search .input-group:focus-within{background:var(--bg-white);border-color:var(--theme-primary);box-shadow:0 0 0 3px var(--theme-primary-15,var(--theme-primary-15))}.md-list-search .input-group-text{color:var(--surface-400);background:0 0;border:none;padding-left:14px}.md-list-search .form-control{color:var(--surface-800);background:0 0;border:none;padding:.6rem .75rem;font-size:.9rem}.md-list-search .form-control:focus{box-shadow:none}.md-list-content{flex-direction:column;flex:1;display:flex;overflow:hidden}.md-list-scroll{flex:1;overflow:hidden auto}.md-list-scroll::-webkit-scrollbar{width:6px}.md-list-scroll::-webkit-scrollbar-track{background:var(--surface-100)}.md-list-scroll::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:3px}.md-list-scroll::-webkit-scrollbar-thumb:hover{background:var(--surface-400)}.md-list-loading{height:200px;color:var(--surface-400);flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px;display:flex}.md-list-loading .spinner-border{color:var(--theme-primary);width:28px;height:28px}.md-list-empty{min-height:160px;color:var(--surface-500);background:var(--surface-50);border:1.5px dashed var(--surface-300);text-align:center;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:.75rem;margin:.75rem;padding:1.5rem 1rem;display:flex}.md-list-empty>svg{opacity:.7;color:var(--theme-primary);filter:drop-shadow(0 2px 4px var(--theme-primary-25))}.md-list-empty .btn svg{color:inherit!important;opacity:1!important;filter:none!important}.md-list-empty p{color:var(--surface-500);margin:0;font-size:.9rem;font-weight:500}.md-list-empty .btn{border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:40px;padding:.4rem .75rem;font-size:.8125rem;font-weight:500;transition:all .2s;display:flex}.md-list-empty .btn svg{flex-shrink:0;width:14px!important;height:14px!important}.md-list-empty .btn-text{font-size:.8125rem;font-weight:500}.md-list-item{padding:var(--md-list-item-padding);cursor:pointer;transition:all var(--md-transition-fast);margin:var(--md-list-item-margin);border-radius:var(--md-list-item-radius);background:0 0;border:none;align-items:center;display:flex;position:relative}.md-list-item:hover{background:var(--md-item-hover-bg)}.md-list-item.selected{background:var(--md-item-selected-bg)}.md-list-item.selected:before{content:"";background:var(--md-item-selected-border);border-radius:0 4px 4px 0;width:4px;height:60%;position:absolute;top:50%;left:0;transform:translateY(-50%)}.md-list-item.selected:hover{background:var(--theme-primary-15,var(--theme-primary-15))}.md-item-avatar{background:var(--md-avatar-bg);width:42px;min-width:42px;height:42px;color:var(--bg-white);text-transform:uppercase;box-shadow:var(--md-avatar-shadow);letter-spacing:.5px;transition:transform var(--md-transition-fast),box-shadow var(--md-transition-fast);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;margin-right:12px;font-size:.85rem;font-weight:600;display:flex}.md-list-item:hover .md-item-avatar{box-shadow:0 4px 12px rgba(var(--theme-primary-rgb,107,127,78),.3);transform:scale(1.05)}.md-item-avatar.large{width:64px;min-width:64px;height:64px;box-shadow:0 4px 15px var(--theme-primary-35);border-radius:16px;font-size:1.35rem}.md-item-info{flex:1;min-width:0;overflow:hidden}.md-item-name{color:var(--surface-800);white-space:nowrap;text-overflow:ellipsis;font-weight:600;font-size:var(--md-item-name-size);letter-spacing:-.01em;margin-bottom:3px;overflow:hidden}.md-list-item.selected .md-item-name{color:var(--theme-primary-dark)}.md-item-meta{font-size:var(--md-item-meta-size);color:var(--surface-400);gap:12px;display:flex}.md-item-meta span{align-items:center;gap:4px;display:inline-flex}.md-item-meta svg{color:var(--surface-300);font-size:.65rem}
.md-list-pagination{background:var(--bg-white);border-top:1px solid #0000000a;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;display:flex}.md-list-pagination .pagination-info{color:var(--surface-500);text-align:center;flex:1;font-size:.8rem;font-weight:600}.md-list-pagination .btn{color:var(--surface-500);background:var(--surface-100);transition:all var(--md-transition-fast);border:none;border-radius:8px;padding:.4rem .6rem}.md-list-pagination .btn:hover:not(:disabled){background:var(--theme-primary-15,var(--theme-primary-15));color:var(--theme-primary)}.md-list-pagination .btn:disabled{opacity:.3;background:0 0}.md-resize-handle{cursor:col-resize;width:16px;height:100%;z-index:var(--md-z-resize);transition:all var(--md-transition-resize);justify-content:center;align-items:center;display:flex;position:absolute;top:0;right:0;transform:translate(50%)}.md-resize-handle:before{content:"";background:linear-gradient(180deg,transparent 0%,var(--md-resize-line-color)5%,#0000001a 50%,var(--md-resize-line-color)95%,transparent 100%);width:1px;height:100%;transition:all var(--md-transition-resize);position:absolute;top:0;left:50%;transform:translate(-50%)}.md-resize-handle:hover:before{background:linear-gradient(180deg,transparent 0%,var(--md-resize-line-hover)5%,var(--md-resize-line-hover)50%,var(--md-resize-line-hover)95%,transparent 100%);width:2px}.md-resize-handle-bar{background:var(--md-resize-handle-bg);border:1px solid var(--md-resize-handle-border);width:10px;height:36px;transition:all var(--md-transition-resize);z-index:1;border-radius:6px;flex-direction:column;justify-content:center;align-items:center;gap:4px;display:flex;position:relative;box-shadow:0 1px 3px #00000014}.md-resize-handle-bar:before,.md-resize-handle-bar:after{content:"";background:var(--surface-400);width:4px;height:4px;transition:background var(--md-transition-resize);border-radius:50%}.md-resize-handle-bar .grip-dot{background:var(--surface-400);width:4px;height:4px;transition:background var(--md-transition-resize);border-radius:50%}.md-resize-handle:hover .md-resize-handle-bar{background:var(--bg-white);border-color:var(--theme-primary-40,var(--theme-primary-40));box-shadow:0 2px 8px var(--theme-primary-15);transform:scale(1.05)}.md-resize-handle:hover .md-resize-handle-bar:before,.md-resize-handle:hover .md-resize-handle-bar:after,.md-resize-handle:hover .md-resize-handle-bar .grip-dot{background:var(--theme-primary)}.md-resize-handle.resizing:before{background:var(--theme-gradient,linear-gradient(180deg,var(--theme-primary),var(--theme-primary-dark)));width:3px;box-shadow:0 0 8px var(--theme-primary-40)}.md-resize-handle.resizing .md-resize-handle-bar{background:var(--theme-primary);border-color:var(--theme-primary);box-shadow:0 2px 12px var(--theme-primary-30);transform:scale(1.1)}.md-resize-handle.resizing .md-resize-handle-bar:before,.md-resize-handle.resizing .md-resize-handle-bar:after,.md-resize-handle.resizing .md-resize-handle-bar .grip-dot{background:var(--bg-white)}.md-resize-handle.compact-mode{cursor:e-resize}.md-resize-handle.compact-mode .md-resize-handle-bar{background:var(--theme-primary-15,var(--theme-primary-15));border-color:var(--theme-primary-30,var(--theme-primary-30))}.md-resize-handle.compact-mode:before{background:linear-gradient(180deg,transparent 0%,var(--theme-primary-30,var(--theme-primary-30))5%,var(--theme-primary-50,var(--theme-primary-50))50%,var(--theme-primary-30,var(--theme-primary-30))95%,transparent 100%)}.md-resize-handle.compact-mode:hover .md-resize-handle-bar{background:var(--theme-primary);border-color:var(--theme-primary)}.md-resize-handle.compact-mode:hover .md-resize-handle-bar:before,.md-resize-handle.compact-mode:hover .md-resize-handle-bar:after,.md-resize-handle.compact-mode:hover .md-resize-handle-bar .grip-dot{background:var(--bg-white)}.md-detail-panel{background:var(--md-detail-bg);border:var(--md-panel-border);border-radius:12px;flex-direction:column;flex:1;height:100%;display:flex;position:relative;overflow-y:auto;container:detail-panel/inline-size}:is(.md-detail-panel:has(.animal-creation-wizard),.md-detail-panel:has(.client-creation-wizard),.md-detail-panel:has(.appointment-creation-wizard),.md-detail-panel:has(.event-creation-wizard)){overflow:hidden}.md-detail-panel::-webkit-scrollbar{width:8px}.md-detail-panel::-webkit-scrollbar-track{background:var(--surface-100)}.md-detail-panel::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:4px}.md-detail-empty{text-align:center;height:100%;color:var(--surface-500);flex-direction:column;justify-content:center;align-items:center;padding:32px;display:flex}.md-detail-empty .empty-icon{background:var(--surface-100);width:120px;height:120px;color:var(--surface-400);border-radius:50%;justify-content:center;align-items:center;margin-bottom:24px;display:flex}.md-detail-empty h5{color:var(--surface-700);margin-bottom:8px;font-weight:600}.md-detail-empty>p{max-width:320px;margin-bottom:24px;line-height:1.6}.md-mobile-menu-btn{top:calc(var(--header-height,60px) + 12px);z-index:1029;background:var(--bg-white);color:var(--theme-primary);border-color:var(--surface-100);border-radius:10px;align-items:center;padding:.5rem 1rem;font-size:.9rem;font-weight:500;display:flex;position:fixed;left:12px;box-shadow:0 2px 12px #00000026}.md-reopen-list-btn{z-index:10;background:var(--bg-white);border:1px solid var(--surface-100);width:28px;height:72px;max-height:calc(100% - 24px);color:var(--theme-primary);border-left:none;border-radius:0 8px 8px 0;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex;position:absolute;top:clamp(36px,50%,100% - 36px);left:0;transform:translateY(-50%);box-shadow:2px 0 12px #0000001a}.md-reopen-list-btn:hover{background:var(--theme-primary);width:36px;color:var(--bg-white);border-color:var(--theme-primary)}.md-reopen-list-btn svg{transition:transform .2s}.md-reopen-list-btn:hover svg{transform:translate(2px)}
.md-item-avatar{background:var(--theme-primary);width:42px;min-width:42px;height:42px;color:var(--bg-white);text-transform:uppercase;box-shadow:var(--theme-shadow-sm,0 2px 8px #6b7f4e40);letter-spacing:.5px;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;margin-right:12px;font-size:.85rem;font-weight:600;transition:transform .15s,box-shadow .15s;display:flex;position:relative;overflow:hidden}.md-list-item:hover .md-item-avatar{box-shadow:var(--theme-shadow-md,0 4px 12px #6b7f4e4d);transform:scale(1.05)}.md-item-avatar.animal-avatar{justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.md-item-avatar.animal-avatar .avatar-photo{object-fit:cover;border-radius:inherit;width:100%;height:100%}.md-item-avatar.animal-avatar .avatar-initials{color:var(--bg-white);text-transform:uppercase;z-index:1;justify-content:center;align-items:center;font-size:.9rem;font-weight:600;display:flex}.md-item-avatar.animal-avatar .avatar-icon{background:var(--bg-white);opacity:.9;border-radius:50%;padding:2px;position:absolute;bottom:-2px;right:-2px;box-shadow:0 1px 3px #0003}.md-list-panel.extended .animal-avatar .avatar-initials{display:none}.md-list-panel.extended .animal-avatar:not(:has(.avatar-photo)) .avatar-icon{box-shadow:none;background:0 0;padding:0;position:static}.md-list-panel.compact .animal-avatar .avatar-initials{display:flex}.md-list-panel.compact .animal-avatar .avatar-icon{display:none}.md-item-avatar.apt-avatar{background:var(--theme-primary);color:var(--bg-white);flex-direction:column;justify-content:center;align-items:center;min-height:42px;padding:4px;display:flex;position:relative}.md-item-avatar.apt-avatar .apt-day{font-size:1rem;font-weight:700;line-height:1}.md-item-avatar.apt-avatar .apt-month{text-transform:uppercase;opacity:.9;margin-top:1px;font-size:.6rem;line-height:1}.md-item-avatar.apt-avatar .apt-time-compact,.md-item-avatar.apt-avatar .apt-initials{display:none}.md-item-avatar.apt-avatar .apt-status-dot{border:1.5px solid #fff;border-radius:50%;width:8px;height:8px;position:absolute;bottom:2px;right:2px}.apt-status-dot.scheduled{background:var(--warning)}.apt-status-dot.confirmed{background:var(--info)}.apt-status-dot.in_progress{background:var(--tertiary-500)}.apt-status-dot.completed{background:var(--success)}.apt-status-dot.cancelled{background:var(--surface-500)}.apt-status-dot.no_show{background:var(--error)}.md-list-panel.compact .apt-item{flex-direction:column;gap:4px;padding:8px 4px}.md-list-panel.compact .md-item-avatar.apt-avatar{border-radius:10px;width:52px;height:52px;padding:6px 4px}.md-list-panel.compact .apt-avatar .apt-day{font-size:1.1rem}.md-list-panel.compact .apt-avatar .apt-month{font-size:.55rem}.md-list-panel.compact .apt-avatar .apt-time-compact{opacity:.9;margin-top:2px;font-size:.55rem;display:block}.md-list-panel.compact .apt-item .apt-status-badge{display:none}.md-list-item.apt-item.past .apt-avatar{background:var(--surface-400);opacity:.7}.md-list-item.apt-item.overdue{border-left:3px solid var(--error)}.md-list-panel.compact .md-list-item.apt-item.overdue{border-left:none;border-bottom:2px solid var(--error)}.entity-date-block,.appointment-date-block{background:var(--theme-primary);width:42px;min-width:42px;height:46px;color:var(--bg-white);box-shadow:var(--theme-shadow-sm,0 2px 6px #6b7f4e4d);border-radius:8px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;display:flex}.entity-date-block .date-day,.appointment-date-block .date-day{font-size:1rem;font-weight:700;line-height:1}.entity-date-block .date-month,.appointment-date-block .date-month{text-transform:uppercase;opacity:.9;margin-top:1px;font-size:.6rem}.entity-date-block.status-success,.appointment-date-block.status-success{background:var(--success);box-shadow:0 2px 6px #28a7454d}.entity-date-block.status-warning,.appointment-date-block.status-warning{background:var(--warning);box-shadow:0 2px 6px #ffc1074d}.entity-date-block.status-danger,.appointment-date-block.status-danger{background:var(--danger);box-shadow:0 2px 6px #dc35454d}.entity-date-block.status-info,.appointment-date-block.status-info{background:var(--info);box-shadow:0 2px 6px #17a2b84d}.entity-date-block.status-secondary,.appointment-date-block.status-secondary{background:var(--surface-500);box-shadow:0 2px 6px #6c757d4d}.entity-detail-panel{background:var(--bg-white);border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden;box-shadow:0 2px 8px #0000000f}.entity-detail-header{background:var(--bg-warm);border-bottom:1px solid var(--surface-100);flex-shrink:0;padding:20px}.entity-detail-body{flex-direction:column;flex:1;display:flex;overflow:hidden}.entity-form-panel{background:var(--bg-white);border-radius:12px;flex-direction:column;height:100%;display:flex;overflow:hidden;box-shadow:0 2px 8px #0000000f}.entity-form-header{background:var(--bg-warm);border-bottom:1px solid var(--surface-100);flex-shrink:0;padding:20px 24px}.entity-form-header h4{color:var(--theme-primary);align-items:center;gap:10px;margin:0;font-size:1.25rem;font-weight:600;display:flex}.entity-form-body{flex:1;padding:24px;overflow-y:auto}.entity-form-footer{background:var(--surface-50);border-top:1px solid var(--surface-100);flex-shrink:0;justify-content:flex-end;gap:10px;padding:16px 24px;display:flex}.entity-info-box{background:var(--surface-50);border-radius:10px;margin-bottom:12px;padding:16px}.entity-info-box h6{color:var(--surface-700);align-items:center;gap:8px;margin-bottom:8px;font-size:.85rem;font-weight:600;display:flex}.entity-info-box h6 svg{color:var(--theme-primary)}.entity-info-box p{color:var(--surface-700);margin:0;font-size:.9rem;line-height:1.5}.entity-empty-state{text-align:center;background:var(--bg-white);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;height:100%;padding:40px;display:flex}.entity-empty-state .empty-icon{color:var(--surface-200);margin-bottom:20px;font-size:4rem}.entity-empty-state h5{color:var(--surface-700);margin-bottom:8px;font-weight:600}.entity-empty-state p{color:var(--surface-500);max-width:320px;margin-bottom:24px}.entity-empty-state .btn-success{background:var(--theme-primary);box-shadow:var(--theme-shadow-sm);border:none;border-radius:10px;padding:.75rem 1.5rem;font-weight:500;transition:all .2s}.entity-empty-state .btn-success:hover{box-shadow:var(--theme-shadow-md);transform:translateY(-2px)}.entity-accordions{flex-direction:column;gap:8px;padding:8px;display:flex}.entity-accordion-item{background:var(--bg-white);border:1px solid var(--surface-100);border-radius:8px;overflow:hidden}.entity-accordion-header{background:var(--surface-50);cursor:pointer;border:none;justify-content:space-between;align-items:center;width:100%;padding:10px 12px;transition:all .2s;display:flex}.entity-accordion-header:hover{background:var(--surface-100)}.entity-accordion-header.success{border-left:3px solid var(--success)}.entity-accordion-header.warning{border-left:3px solid var(--warning)}.entity-accordion-header.danger{border-left:3px solid var(--danger)}.entity-accordion-title{align-items:center;gap:8px;font-size:.85rem;font-weight:500;display:flex}.entity-accordion-title .icon-success{color:var(--success)}.entity-accordion-title .icon-warning{color:var(--warning)}.entity-accordion-title .icon-danger{color:var(--danger)}.entity-accordion-count{border-radius:10px;padding:2px 8px;font-size:.7rem;font-weight:600}.entity-accordion-count.success{color:var(--success);background:#28a74526}.entity-accordion-count.warning{color:var(--warning-dark);background:#ffc10726}.entity-accordion-count.danger{color:var(--danger);background:#dc354526}.entity-accordion-content{flex-direction:column;gap:4px;max-height:300px;padding:8px;display:flex;overflow-y:auto}.entity-accordion-empty{text-align:center;color:var(--surface-500);padding:20px}.entity-accordion-empty p{margin:0;font-size:.8rem}@media (max-width:768px){.entity-date-block,.appointment-date-block{width:38px;min-width:38px;height:42px}.entity-date-block .date-day,.appointment-date-block .date-day{font-size:.9rem}.entity-form-body{padding:16px}.entity-accordion-content{max-height:200px}}.pro-theme .md-item-avatar.apt-avatar{background:var(--pro-primary);color:var(--bg-white)}.pro-theme .md-item-avatar.apt-avatar .apt-day,.pro-theme .md-item-avatar.apt-avatar .apt-month,.pro-theme .md-item-avatar.apt-avatar .apt-time-compact,.pro-theme .md-item-avatar.apt-avatar .apt-initials{color:var(--bg-white)}
.entity-tabs,.animal-tabs,.appointment-tabs,.client-tabs{flex-direction:column;flex:1;display:flex;overflow:hidden}.entity-tabs .tabs-nav,.animal-tabs .tabs-nav,.appointment-tabs .tabs-nav,.client-tabs .tabs-nav{background:var(--surface-50);border-bottom:1px solid var(--surface-200);flex-shrink:0;gap:0;display:flex}.entity-tabs .tab-btn,.animal-tabs .tab-btn,.appointment-tabs .tab-btn,.client-tabs .tab-btn{color:var(--surface-500);cursor:pointer;background:0 0;border:none;border-bottom:3px solid #0000;flex:1;justify-content:center;align-items:center;gap:8px;padding:12px 16px;font-size:.9rem;font-weight:500;transition:all .2s;display:flex}.entity-tabs .tab-btn:hover,.animal-tabs .tab-btn:hover,.appointment-tabs .tab-btn:hover,.client-tabs .tab-btn:hover{color:var(--theme-color,var(--theme-primary));background:var(--theme-primary-05)}.entity-tabs .tab-btn.active,.animal-tabs .tab-btn.active,.appointment-tabs .tab-btn.active,.client-tabs .tab-btn.active{color:var(--theme-color,var(--theme-primary));border-bottom-color:var(--theme-color,var(--theme-primary));background:var(--bg-white)}.entity-tabs .tab-btn svg,.animal-tabs .tab-btn svg,.appointment-tabs .tab-btn svg,.client-tabs .tab-btn svg{flex-shrink:0;font-size:.85rem}.entity-tabs .tab-count,.animal-tabs .tab-count,.appointment-tabs .tab-count,.client-tabs .tab-count{background:var(--surface-200);color:var(--surface-600);text-align:center;border-radius:6px;min-width:18px;padding:.125rem .375rem;font-size:.7rem;font-weight:600}.entity-tabs .tab-btn.active .tab-count,.animal-tabs .tab-btn.active .tab-count,.appointment-tabs .tab-btn.active .tab-count,.client-tabs .tab-btn.active .tab-count{background:var(--theme-color,var(--theme-primary));color:var(--bg-white)}.entity-tabs .tab-content,.animal-tabs .tab-content,.appointment-tabs .tab-content,.client-tabs .tab-content{background:var(--bg-white);flex:1;padding:16px;overflow-y:auto}.entity-tabs .tab-content::-webkit-scrollbar{width:6px}.animal-tabs .tab-content::-webkit-scrollbar{width:6px}.appointment-tabs .tab-content::-webkit-scrollbar{width:6px}.client-tabs .tab-content::-webkit-scrollbar{width:6px}.entity-tabs .tab-content::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:3px}.animal-tabs .tab-content::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:3px}.appointment-tabs .tab-content::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:3px}.client-tabs .tab-content::-webkit-scrollbar-thumb{background:var(--surface-400);border-radius:3px}.tab-empty{text-align:center;color:var(--surface-400);flex-direction:column;justify-content:center;align-items:center;padding:48px 24px;display:flex}.tab-empty svg{opacity:.5;margin-bottom:12px}.tab-empty p{margin:0;font-size:.9rem}.appointments-list{flex-direction:column;gap:8px;display:flex}.appointments-list .appointment-item{background:var(--surface-50);cursor:pointer;border-radius:10px;align-items:center;gap:12px;padding:12px;transition:background .2s,transform .2s;display:flex}.appointments-list .appointment-item:hover{background:var(--surface-100);transform:translate(4px)}.appointments-list .appointment-item.past{opacity:.6}.appointments-list .apt-date-block{background:var(--theme-color,var(--theme-primary));width:48px;height:48px;color:var(--bg-white);border-radius:10px;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;display:flex}.appointments-list .apt-day{font-size:1.1rem;font-weight:700;line-height:1}.appointments-list .apt-month{text-transform:uppercase;margin-top:2px;font-size:.65rem}.appointments-list .apt-content{flex:1;min-width:0}.appointments-list .apt-type{color:var(--surface-800);white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:600;overflow:hidden}.appointments-list .apt-time{color:var(--surface-500);font-size:.8rem}.appointments-list .apt-status{border-radius:20px;flex-shrink:0;align-items:center;gap:4px;padding:4px 10px;font-size:.75rem;font-weight:500;display:flex}.appointments-list .apt-status.status-confirmed{background:var(--success-light);color:var(--success)}.appointments-list .apt-status.status-completed{background:var(--info-light);color:var(--info)}.appointments-list .apt-status.status-cancelled{background:var(--error-light);color:var(--danger)}.appointments-list .apt-status.status-pending,.appointments-list .apt-status.status-scheduled{background:var(--warning-light);color:var(--warning-dark)}.health-content{flex-direction:column;gap:16px;display:flex}.health-content .health-badges{flex-wrap:wrap;gap:8px;display:flex}.health-content .health-section{background:var(--surface-50);border-radius:10px;padding:12px}.health-content .health-section h6{color:var(--surface-700);align-items:center;gap:8px;margin:0 0 10px;font-size:.85rem;font-weight:600;display:flex}.health-content .health-section h6 svg{color:var(--theme-color,var(--theme-primary))}.health-content .health-list{flex-direction:column;gap:6px;display:flex}.health-content .health-item{color:var(--surface-700);align-items:center;gap:8px;font-size:.85rem;display:flex}.health-content .health-item svg{font-size:.75rem}.health-content .health-item.allergy{color:var(--danger)}.health-content .next-date{border-top:1px dashed var(--surface-200);color:var(--warning-dark);align-items:center;gap:8px;margin-top:10px;padding-top:10px;font-size:.85rem;display:flex}.health-content .medical-notes{color:var(--surface-700);white-space:pre-wrap;margin:0;font-size:.85rem;line-height:1.5}.medical-records-list{flex-direction:column;gap:8px;display:flex}.medical-record-item{background:var(--bg-white);border:1px solid var(--surface-200);border-radius:8px;align-items:flex-start;gap:12px;padding:10px 12px;display:flex}.medical-record-item.inactive{opacity:.6}.medical-record-item .record-date{min-width:70px;color:var(--theme-color,var(--theme-primary));text-align:center;background:var(--theme-primary-10,var(--theme-primary-10));border-radius:6px;flex-shrink:0;padding:4px 8px;font-size:.75rem;font-weight:600}.medical-record-item .record-status{flex-shrink:0}.medical-record-item .record-content{flex:1;min-width:0}.medical-record-item .record-title{color:var(--surface-800);font-size:.9rem;font-weight:600}.medical-record-item .record-subtitle{color:var(--surface-500);margin-top:2px;font-size:.8rem}.medical-record-item .record-meta{color:var(--surface-400);align-items:center;gap:6px;margin-top:4px;font-size:.75rem;display:flex}.medical-record-item .record-meta svg{font-size:.7rem}.medical-record-item .record-dates{color:var(--surface-500);margin-top:4px;font-size:.75rem}.medical-record-item .record-next{color:var(--warning-dark);background:var(--warning-light);border-radius:6px;flex-shrink:0;align-items:center;gap:4px;padding:4px 8px;font-size:.75rem;display:flex}.medical-record-item .record-notes{color:var(--surface-500);border-top:1px dashed var(--surface-200);margin-top:6px;padding-top:6px;font-size:.8rem;font-style:italic}.notes-content{flex-direction:column;gap:16px;display:flex}.notes-content .note-section{background:var(--surface-50);border-radius:10px;padding:12px}.notes-content .note-section h6{color:var(--surface-500);text-transform:uppercase;letter-spacing:.05em;margin:0 0 8px;font-size:.8rem;font-weight:600}.notes-content .note-section p{color:var(--surface-700);white-space:pre-wrap;margin:0;font-size:.9rem;line-height:1.6}.documents-list{flex-direction:column;gap:8px;display:flex}.document-item{background:var(--surface-50);cursor:pointer;border-radius:10px;align-items:center;gap:12px;padding:12px;transition:all .2s;display:flex}.document-item:hover{background:var(--surface-100)}.document-item .doc-icon{background:var(--theme-primary-10,var(--theme-primary-10));width:40px;height:40px;color:var(--theme-color,var(--theme-primary));border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.document-item .doc-info{flex:1;min-width:0}.document-item .doc-name{color:var(--surface-800);white-space:nowrap;text-overflow:ellipsis;font-size:.9rem;font-weight:600;overflow:hidden}.document-item .doc-meta{color:var(--surface-500);margin-top:2px;font-size:.75rem}.document-item .doc-actions{gap:6px;display:flex}@media (max-width:768px){.entity-tabs .tab-btn,.animal-tabs .tab-btn,.appointment-tabs .tab-btn,.client-tabs .tab-btn{padding:10px 12px;font-size:.8rem}.entity-tabs .tab-btn span,.animal-tabs .tab-btn span,.appointment-tabs .tab-btn span,.client-tabs .tab-btn span{display:none}.entity-tabs .tab-content,.animal-tabs .tab-content,.appointment-tabs .tab-content,.client-tabs .tab-content{padding:12px}.appointments-list .appointment-item{padding:10px}.appointments-list .apt-date-block{width:40px;height:40px}.appointments-list .apt-day{font-size:.95rem}.appointments-list .apt-status span{display:none}}.pro-theme .entity-tabs .tab-btn:hover,.pro-theme .animal-tabs .tab-btn:hover,.pro-theme .appointment-tabs .tab-btn:hover,.pro-theme .client-tabs .tab-btn:hover{background:#047a720d}.pro-theme .appointments-list .apt-highlight .apt-info{background:var(--theme-primary-10,#047a721a)}.pro-theme .document-item .doc-icon{background:#047a721a}

